public class ProbabilityState extends Object
Modifier and Type | Field and Description |
---|---|
int |
maxState |
HashMap<Integer,Double> |
probMap |
Constructor and Description |
---|
ProbabilityState(double[] dataVector)
Constructor for the ProbabilityState class.
|
Modifier and Type | Method and Description |
---|---|
static int |
mergeArrays(double[] firstVector,
double[] secondVector,
double[] outputVector)
Takes in two arrays and writes the joint state of those arrays
to the output vector, returning the maximum joint state.
|
static int |
normaliseArray(double[] inputVector,
int[] outputVector)
Takes an input vector and writes an output vector
which is a normalised version of the input, and returns the maximum state.
|
static void |
printDoubleVector(double[] vector)
A helper function which prints out any given double vector.
|
static void |
printIntVector(int[] vector)
A helper function which prints out any given int vector.
|
public ProbabilityState(double[] dataVector)
dataVector
- Input vector. It is discretised to the floor of each value.public static final int normaliseArray(double[] inputVector, int[] outputVector)
inputVector
- The vector to normalise.outputVector
- The normalised vector. Must be instantiated to length inputVector.length.public static final int mergeArrays(double[] firstVector, double[] secondVector, double[] outputVector)
firstVector
- The first vector.secondVector
- The second vector.outputVector
- The merged vector. Must be instantiated to length inputVector.length.public static void printIntVector(int[] vector)
vector
- The vector to print out.public static void printDoubleVector(double[] vector)
vector
- The vector to print out.Jas4pp 1.5 © Java Analysis Studio for Particle Physics