bayesnet.internal.jayes.util
Class AddressCalc
- java.lang.Object
-
- bayesnet.internal.jayes.util.AddressCalc
-
public final class AddressCalc extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static int[]computeLinearMap(AbstractFactor factor, int... dimensionIDs)computes a linear map that can be used to transform the factors' addresses to the corresponding index of the flat value array of another factor consisting of the dimensions with the given dimensionIDs.static voidincrementMultiDimensionalCounter(int[] counter, int[] dimensions)
-
-
-
Method Detail
-
incrementMultiDimensionalCounter
public static void incrementMultiDimensionalCounter(int[] counter, int[] dimensions)
-
computeLinearMap
public static int[] computeLinearMap(AbstractFactor factor, int... dimensionIDs)
computes a linear map that can be used to transform the factors' addresses to the corresponding index of the flat value array of another factor consisting of the dimensions with the given dimensionIDs. dimensionIDs is expected to be a superset of the dimension ids of the first factor
-
-
DataMelt 3.0 © DataMelt by jWork.ORG