public class FactorFactory extends Object
| Constructor and Description |
|---|
FactorFactory() |
| Modifier and Type | Method and Description |
|---|---|
AbstractFactor |
create(List<Integer> vars,
List<AbstractFactor> multiplicationPartners)
creates a factor, the class of which is dependent on different criteria defined in the concrete subclasses.
|
static FactorFactory |
defaultFactory() |
protected boolean |
getUseLogScale(AbstractFactor f) |
void |
setFloatingPointType(Class<?> contentType)
sets the floating point precision to use.
|
void |
setReferenceNetwork(BayesNet net) |
void |
setUseLogScale(boolean useLogScale)
using logarithmic values for computation is a lot slower, but also a lot more numerically stable
|
protected BayesNet net
public void setFloatingPointType(Class<?> contentType)
contentType - possible values: double.class, Double.class, float.class, Float.classpublic void setReferenceNetwork(BayesNet net)
public void setUseLogScale(boolean useLogScale)
useLogScale - use log scalepublic AbstractFactor create(List<Integer> vars, List<AbstractFactor> multiplicationPartners)
vars - input varsmultiplicationPartners - multiplication partnersprotected boolean getUseLogScale(AbstractFactor f)
public static FactorFactory defaultFactory()
Copyright © 2018. All rights reserved.