bayesnet.jayes.factor
Class DenseFactor
- java.lang.Object
-
- bayesnet.jayes.factor.AbstractFactor
-
- bayesnet.jayes.factor.DenseFactor
-
- All Implemented Interfaces:
- java.lang.Cloneable
public class DenseFactor extends AbstractFactor
-
-
Constructor Summary
Constructors Constructor and Description DenseFactor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcopyValues(IArrayWrapper arrayWrapper)voidfill(double d)intgetOverhead()int[]prepareMultiplication(AbstractFactor compatible)prepares multiplication by precomputing the corresponding array positions in the compatible Factor-
Methods inherited from class bayesnet.jayes.factor.AbstractFactor
clone, getDimensionIDs, getDimensions, getValue, getValues, isLogScale, marginalizeAllBut, multiplyCompatible, multiplyCompatibleToLog, multiplyPrepared, resetSelections, select, setDimensionIDs, setDimensions, setLogScale, setValues, sumPrepared
-
-
-
-
Method Detail
-
fill
public void fill(double d)
- Specified by:
fillin classAbstractFactor
-
prepareMultiplication
public int[] prepareMultiplication(AbstractFactor compatible)
prepares multiplication by precomputing the corresponding array positions in the compatible Factor- Specified by:
prepareMultiplicationin classAbstractFactor- Parameters:
compatible- a factor that has a subset of the dimensions of this factor- Returns:
-
copyValues
public void copyValues(IArrayWrapper arrayWrapper)
- Specified by:
copyValuesin classAbstractFactor
-
getOverhead
public int getOverhead()
- Specified by:
getOverheadin classAbstractFactor- Returns:
- approximated memory requirements on top of the value array
-
-
DataMelt 3.0 © DataMelt by jWork.ORG