Package org.ojalgo.series.primitive
Class PrimitiveSeries
java.lang.Object
org.ojalgo.series.primitive.PrimitiveSeries
- All Implemented Interfaces:
Access1D<Double>
,Structure1D
- Direct Known Subclasses:
AccessSeries
,BinaryFunctionSeries
,DataSeries
,DifferencesSeries
,PrimitiveTimeSeries
,PrunedSeries
,QuotientsSeries
,UnaryFunctionSeries
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends Comparable<N>>, Access1D.Collectable<N extends Comparable<N>,
R extends Mutate1D>, Access1D.ElementView<N extends Comparable<N>>, Access1D.SelectionView<N extends Comparable<N>>, Access1D.Sliceable<N extends Comparable<N>>, Access1D.Visitable<N extends Comparable<N>> Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,
B extends Structure1D.Logical<S, B>>, Structure1D.LongIndex, Structure1D.LoopCallback -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(double addend) add
(PrimitiveSeries addend) copy()
static PrimitiveSeries
long
count()
The total number of elements in this structure.period == 1differences
(int period) divide
(double divisor) divide
(PrimitiveSeries divisor) double
doubleValue
(int index) exp()
get
(int index) get
(long index) log()
multiply
(double multiplicand) multiply
(PrimitiveSeries multiplicand) prune
(int shift) A positive valued shift will prune that many elements off the head of the series.period == 1quotients
(int period) runningProduct
(double initialValue) runningSum
(double initialValue) abstract int
size()
The total number of elements in this structure.subtract
(double subtrahend) subtract
(PrimitiveSeries subtrahend) toString()
abstract double
value
(int index) double[]
values()
variances
(ScedasticityModel model) Creates a series of variances from this series of values.static PrimitiveSeries
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, axpy, byteValue, byteValue, dot, doubleValue, elements, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toRawCopy1D
-
Constructor Details
-
PrimitiveSeries
protected PrimitiveSeries()
-
-
Method Details
-
copy
-
wrap
-
add
-
add
-
copy
-
count
public long count()Description copied from interface:Structure1D
The total number of elements in this structure.You only need to implement this method if the structure can contain more than Integer.MAX_VALUE elements.
- Specified by:
count
in interfaceStructure1D
-
differences
period == 1 -
differences
-
divide
-
divide
-
doubleValue
public double doubleValue(int index) - Specified by:
doubleValue
in interfaceAccess1D<Double>
-
exp
-
get
-
get
-
log
-
multiply
-
multiply
-
prune
A positive valued shift will prune that many elements off the head of the series. A negative valued shift will prune that many elements off the tail of the series. -
quotients
period == 1 -
quotients
-
runningProduct
-
runningSum
-
size
public abstract int size()Description copied from interface:Structure1D
The total number of elements in this structure.- Specified by:
size
in interfaceStructure1D
-
subtract
-
subtract
-
toDataSeries
-
toString
-
value
public abstract double value(int index) -
values
public double[] values() -
variances
Creates a series of variances from this series of values. Assumes there is a stationary mean, and then calculates the (possibly fluctuating) variance from that mean.- See Also:
-