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 Access1D
Access1D.Aggregatable<N>, Access1D.Collectable<N,R>, Access1D.ElementView<N>, Access1D.SelectionView<N>, Access1D.Sliceable<N>, Access1D.Visitable<N> Nested classes/interfaces inherited from interface Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S,B>, Structure1D.LongIndex, Structure1D.LoopCallback -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(double addend) add(PrimitiveSeries addend) copy()static PrimitiveSerieslongcount()The total number of elements in this structure.period == 1differences(int period) divide(double divisor) divide(PrimitiveSeries divisor) doubledoubleValue(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 intsize()The total number of elements in this structure.subtract(double subtrahend) subtract(PrimitiveSeries subtrahend) toString()abstract doublevalue(int index) double[]values()variances(ScedasticityModel model) Creates a series of variances from this series of values.static PrimitiveSeriesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, byteValue, dot, doubleValue, elements, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toList, toRawCopy1D
-
Constructor Details
-
PrimitiveSeries
protected PrimitiveSeries()
-
-
Method Details
-
copy
-
wrap
-
add
-
add
-
copy
-
count
public long count()Description copied from interface:Structure1DThe 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:
countin interfaceStructure1D
-
differences
period == 1 -
differences
-
divide
-
divide
-
doubleValue
public double doubleValue(int index) - Specified by:
doubleValuein 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:Structure1DThe total number of elements in this structure.- Specified by:
sizein 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:
-