|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.collection.stat.HistogramDataSet.Builder
public static class HistogramDataSet.Builder
Build a binned peak list with binNumber bins, the bins precision
is deduced.
| Constructor Summary | |
|---|---|
HistogramDataSet.Builder()
|
|
HistogramDataSet.Builder(double[] bins,
Interval interval)
|
|
| Method Summary | |
|---|---|
HistogramDataSet.Builder |
addValue(double value)
Add value. |
HistogramDataSet.Builder |
addValues(double[] vals)
Add values. |
HistogramDataSet.Builder |
addValuesFromDist(org.apache.commons.math.distribution.ContinuousDistribution dist,
int n)
Add values from continuous distribution. |
HistogramDataSet.Builder |
addValuesFromDist(org.apache.commons.math.distribution.DiscreteDistribution dist,
int trials)
Add values from discrete distribution. |
HistogramDataSet.Builder |
addWeight(double value)
Add weight value. |
HistogramDataSet.Builder |
addWeights(double[] values)
Add weights. |
HistogramDataSet.Builder |
binNumber(int binNumber)
Set the number of bins. |
HistogramDataSet.Builder |
binWidth(double binWidth)
Set the width of each bin. |
HistogramDataSet |
build()
Build an instance of BinnedPeakListImpl. |
static int |
computeSize(double from,
double to,
double binWidth)
Compute the number of bins. |
HistogramDataSet.Builder |
freeData()
Delete data. |
HistogramDataSet.Builder |
interval(Interval interval)
Set the interval to make bins. |
HistogramDataSet.Builder |
normalizedSum(double normalizedSum)
Set the normalized sum value. |
HistogramDataSet.Builder |
ppm(double ppm)
Set the ppm value. |
HistogramDataSet.Builder |
setMaxWeight(double value)
Update the maximum weight value and normalize others. |
HistogramDataSet.Builder |
sortValues()
|
HistogramDataSet.Builder |
stdError(double error)
Set the standard error value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HistogramDataSet.Builder()
public HistogramDataSet.Builder(double[] bins,
Interval interval)
| Method Detail |
|---|
public final HistogramDataSet.Builder sortValues()
public final HistogramDataSet.Builder addValuesFromDist(org.apache.commons.math.distribution.DiscreteDistribution dist,
int trials)
dist - the discrete distribution.trialsNumber - the number of trials.
public final HistogramDataSet.Builder addValuesFromDist(org.apache.commons.math.distribution.ContinuousDistribution dist,
int n)
dist - the distribution.n - the number of values from the distribution to generate.
public final HistogramDataSet.Builder addValue(double value)
value - the value to add.
public final HistogramDataSet.Builder addValues(double[] vals)
values - the values to add.
public final HistogramDataSet.Builder addWeight(double value)
value - the weight value to add.
public final HistogramDataSet.Builder addWeights(double[] values)
values - the weights to add.
public final HistogramDataSet.Builder interval(Interval interval)
interval - the interval limit.
public final HistogramDataSet.Builder stdError(double error)
error - the tolerance of the mass spectrometer.
public final HistogramDataSet.Builder ppm(double ppm)
ppm - the ppm of the mass spectrometer.
public final HistogramDataSet.Builder normalizedSum(double normalizedSum)
normalizedSum - the normalized sum.
public final HistogramDataSet.Builder setMaxWeight(double value)
value - the maximum weight value.
public final HistogramDataSet.Builder binWidth(double binWidth)
binWidth - the bin width.
binNumberpublic final HistogramDataSet.Builder binNumber(int binNumber)
binNumber - the number of bins.
binWidthpublic final HistogramDataSet.Builder freeData()
public static int computeSize(double from,
double to,
double binWidth)
from - the lowest value.to - the highest value.binWidth - the width of bin.
public HistogramDataSet build()
throws BuilderException
BinnedPeakListImpl.
build in interface InstanceBuilder<HistogramDataSet>T.
BuilderException - - if conditions to build T are not
satisfied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||