Package samer.units
Class Histogram
- java.lang.Object
-
- Viewable
-
- samer.units.Histogram
-
- All Implemented Interfaces:
- Task
public class Histogram extends Viewable implements Task
This actually builds several histograms in parallel: one for each element of a Vec or double array. A IMap provides the mapping from element values to histogram bins. The result is a Matrix, each row of which is the histogram for the corresponding element of the input vector.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description class
Histogram.Equaliser
This is a function which uses a cumulative probability function derived from the histogram to compute a transformation that results in a uniformly distributed variable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
clear()
void
dispose()
void
execute(java.lang.String cmd, Environment env)
Matrix
getBinMatrix()
void
getCommands(Registry r)
Histogram.Equaliser
getEqualiser()
VDouble
getLikelihoodSignal()
VVector
getLikelihoodVector()
Viewer
getViewer()
double[]
normalise()
void
run()
void
starting()
void
stopping()
-
-
-
Constructor Detail
-
Histogram
public Histogram(Vec input, int binCount)
-
-
Method Detail
-
getBinMatrix
public Matrix getBinMatrix()
-
getLikelihoodVector
public VVector getLikelihoodVector()
-
getLikelihoodSignal
public VDouble getLikelihoodSignal()
-
clear
public void clear()
-
normalise
public double[] normalise()
-
getViewer
public Viewer getViewer()
-
getCommands
public void getCommands(Registry r)
-
execute
public void execute(java.lang.String cmd, Environment env) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getEqualiser
public Histogram.Equaliser getEqualiser()
-
-