org.jquantlib.math.statistics
Class ConvergenceStatistics
- java.lang.Object
-
- org.jquantlib.math.statistics.ConvergenceStatistics
-
public class ConvergenceStatistics extends java.lang.ObjectStatistics class with convergence tableThis class decorates another statistics class adding a convergence table calculation. The table tracks the convergence of the mean.
It is possible to specify the number of samples at which the mean should be stored by mean of the second template parameter; the default is to store \f$ 2^{n-1} \f$ samples at the \f$ n \f$-th step. Any passed class must implement the following interface:
public int initialSamples() @ReadOnly; public int nextSamples(int currentSamples) @ReadOnly;
as well as a copy constructor.
-
-
Constructor Summary
Constructors Constructor and Description ConvergenceStatistics()ConvergenceStatistics(org.jquantlib.math.statistics.ConvergenceStatistics.DoublingConvergenceSteps rule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(double value)voidadd(double value, double weight)voidaddSequence(Array datum)adds a sequence of data to the set, with default weightvoidaddSequence(Array datum, Array weights)adds a sequence of data to the set, each with its weightvoidaddSequence(double[] datum)adds a sequence of data to the set, with default weightvoidaddSequence(double[] datum, double[] weights)adds a sequence of data to the set, each with its weightjava.util.List<Pair<java.lang.Integer,java.lang.Double>>convergenceTable()intinitialSamples()intnextSamples(int current)voidreset()
-
-
-
Constructor Detail
-
ConvergenceStatistics
public ConvergenceStatistics()
-
ConvergenceStatistics
public ConvergenceStatistics(org.jquantlib.math.statistics.ConvergenceStatistics.DoublingConvergenceSteps rule)
-
-
Method Detail
-
initialSamples
public int initialSamples()
-
nextSamples
public int nextSamples(int current)
-
add
public void add(double value)
-
add
public void add(double value, double weight)
-
addSequence
public void addSequence(double[] datum)
adds a sequence of data to the set, with default weight
-
addSequence
public void addSequence(double[] datum, double[] weights)adds a sequence of data to the set, each with its weight
-
addSequence
public void addSequence(Array datum)
adds a sequence of data to the set, with default weight
-
addSequence
public void addSequence(Array datum, Array weights)
adds a sequence of data to the set, each with its weight
-
reset
public void reset()
-
convergenceTable
public java.util.List<Pair<java.lang.Integer,java.lang.Double>> convergenceTable()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG