public class Histogram extends DoubleFV
values| Constructor and Description |
|---|
Histogram(double[] data)
Construct from values array and dimensions
|
Histogram(DoubleFV... hs)
Construct a histogram by concatenating the given histograms
|
Histogram(int nbins)
Construct a histogram with the given number of bins.
|
| Modifier and Type | Method and Description |
|---|---|
Histogram |
clone() |
Histogram |
combine(Histogram... hs)
Create a new histogram by concatenating this one with the given ones.
|
double |
max()
Compute the maximum value in the histogram
|
void |
normalise()
Normalise to unit area
|
void |
normaliseL1()
l1 norm
|
void |
normaliseL2()
l2 norm
|
asciiHeader, asDoubleFV, asDoubleVector, binaryHeader, compare, concatenate, concatenate, equals, get, getAsDouble, hashCode, length, newInstance, normaliseFV, normaliseFV, normaliseFV, normaliseFV, readASCII, readBinary, setFromDouble, subvector, subvector, toString, writeASCII, writeBinarygetVectorpublic Histogram(int nbins)
nbins - number of binspublic Histogram(DoubleFV... hs)
hs - histograms to concatenatepublic Histogram(double[] data)
data - the flat array of valuespublic void normalise()
public void normaliseL1()
public void normaliseL2()
public double max()