Access1D.Aggregatable<N extends Number>, Access1D.Collectable<N extends Number,R extends Mutate1D.Receiver<N>>, Access1D.Elements, Access1D.ElementView<N extends Number>, Access1D.IndexOf, Access1D.Sliceable<N extends Number>, Access1D.Visitable<N extends Number>
Structure1D.BasicMapper<T>, Structure1D.IndexCallback, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,?>>, Structure1D.LongIndex, Structure1D.LoopCallback
Modifier and Type | Method and Description |
---|---|
static double |
calculateVariance(double sumOfValues,
double sumOfSquaredValues,
int numberOfValues) |
long |
count() |
double |
doubleValue(long index) |
Double |
get(long index) |
double |
getCorrelation(SampleSet anotherSampleSet) |
double |
getCovariance(SampleSet anotherSampleSet) |
double |
getFirst() |
double |
getInterquartileRange() |
double |
getLargest()
max(abs(value))
|
double |
getLast() |
double |
getMaximum()
max(value)
|
double |
getMean() |
double |
getMedian()
Potentially expensive as it requires copying and sorting of the samples.
|
double |
getMinimum()
min(value)
|
double |
getQuartile1()
Potentially expensive as it requires copying and sorting of the samples.
|
double |
getQuartile2()
Potentially expensive as it requires copying and sorting of the samples.
|
double |
getQuartile3()
Potentially expensive as it requires copying and sorting of the samples.
|
double |
getSmallest()
min(abs(value))
|
double |
getStandardDeviation() |
double |
getStandardScore(long index)
The standard score is the (signed) number of standard deviations an observation or datum is above the
mean.
|
double |
getSumOfSquares()
Sum of squares is a concept that permeates much of inferential statistics and descriptive statistics.
|
double[] |
getValues() |
double |
getVariance() |
static SampleSet |
make() |
static SampleSet |
make(RandomNumber randomNumber,
int size) |
void |
reset()
If the underlying
Access1D of samples is modified you must reset the sample set before using. |
int |
size() |
SampleSet |
swap(Access1D<?> samples)
Replace the underlying samples and reset the sample set.
|
String |
toString() |
static SampleSet |
wrap(Access1D<?> someSamples) |
static SampleSet |
wrap(double[] someSamples) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCollectable1D, asPrimitive1D, axpy, byteValue, dot, elements, equals, floatValue, hashCode, intValue, longValue, nonzeros, shortValue, supplyTo, toRawCopy1D, toString, wrap, wrap
index, loopAll, loopMatching, loopRange, mapper
public static double calculateVariance(double sumOfValues, double sumOfSquaredValues, int numberOfValues)
sumOfValues
- The sum of all values in a sample setsumOfSquaredValues
- The sum of all squared values, in a sample setnumberOfValues
- The number of values in the sample setpublic static SampleSet make()
public static SampleSet make(RandomNumber randomNumber, int size)
public static SampleSet wrap(double[] someSamples)
public long count()
count
in interface Structure1D
public double doubleValue(long index)
doubleValue
in interface Access1D<Double>
public double getCorrelation(SampleSet anotherSampleSet)
public double getCovariance(SampleSet anotherSampleSet)
public double getFirst()
public double getInterquartileRange()
public double getLargest()
public double getLast()
public double getMaximum()
public double getMean()
public double getMedian()
public double getMinimum()
public double getQuartile1()
public double getQuartile2()
public double getQuartile3()
public double getSmallest()
public double getStandardDeviation()
public double getStandardScore(long index)
public double getSumOfSquares()
public double[] getValues()
public double getVariance()
public void reset()
Access1D
of samples is modified you must reset the sample set before using.public int size()
size
in interface Structure1D
public SampleSet swap(Access1D<?> samples)
Copyright © 2019 Optimatika. All rights reserved.