org.ojalgo.series
Class DateRandomSeries

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by org.ojalgo.series.DateRandomSeries
All Implemented Interfaces:
Map<Date,RandomNumber>, SortedMap<Date,RandomNumber>, BasicSeries<Date,RandomNumber>, TimeSeries<Date,RandomNumber>

Deprecated. Since Version 25. Use TimeInMillisSeries instead.

@Deprecated
public final class DateRandomSeries
extends AbstractMap<K,V>

DateRandomSeries

Author:
apete

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
DateRandomSeries(TimeUnit aResolution)
          Deprecated.  
 
Method Summary
 void clear()
           
 BasicSeries<K,V> colour(Color aPaint)
           
 Comparator<? super K> comparator()
           
 boolean containsKey(Object aKey)
           
 boolean containsValue(Object aValue)
           
 Set<Map.Entry<K,V>> entrySet()
           
 K firstKey()
           
 V firstValue()
           
static DateRandomSeries forecast(DateBigSeries aSeries, TimeUnit aTimeUnit, int aUnitCount, BigDecimal aNorm)
          Deprecated. Since Version 25. Use FinanceUtils.forecast(TimeInMillisSeries, int, TimeUnit, boolean) instead.
static DateRandomSeries forecast(DateBigSeries aSeries, TimeUnit aTimeUnit, int aUnitCount, boolean removeNegativeValues)
          Deprecated. Since Version 25. Use FinanceUtils.forecast(TimeInMillisSeries, int, TimeUnit, boolean) instead.
 V get(Object aKey)
           
 Color getColour()
           
 String getName()
           
 long[] getPrimitiveKeys()
           
 double[] getPrimitiveValues()
           
 Date getReference()
           
 TimeUnit getResolution()
           
 TimeInMillisSeries<V> getTimeInMillisSeries()
           
 DateRandomSeries headMap(Date aToKey)
          Deprecated.  
 boolean isEmpty()
           
 K lastKey()
           
 V lastValue()
           
 void modify(UnaryFunction<V> aFunc)
           
 BasicSeries<K,V> name(String aName)
           
 void normalise(K aKey, V aNormValue)
           
 V put(K aKey, V aValue)
           
 TimeSeries<K,V> reconstruct(K aFromKey, K aToKey, TimeUnit aResolution)
           
 V remove(Object aKey)
           
 void setColour(Color aPaint)
           
 void setName(String aName)
           
 int size()
           
 long step()
           
 Date step(Date anExternalKey)
          Will increment the input key to the next expected "value".
 DateRandomSeries subMap(Date aFromKey, Date aToKey)
          Deprecated.  
 DateRandomSeries tailMap(Date aFromKey)
          Deprecated.  
 String toString()
           
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, keySet, putAll, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, keySet, putAll, values
 

Constructor Detail

DateRandomSeries

public DateRandomSeries(TimeUnit aResolution)
Deprecated. 
Method Detail

forecast

@Deprecated
public static DateRandomSeries forecast(DateBigSeries aSeries,
                                                   TimeUnit aTimeUnit,
                                                   int aUnitCount,
                                                   BigDecimal aNorm)
Deprecated. Since Version 25. Use FinanceUtils.forecast(TimeInMillisSeries, int, TimeUnit, boolean) instead.


forecast

@Deprecated
public static DateRandomSeries forecast(DateBigSeries aSeries,
                                                   TimeUnit aTimeUnit,
                                                   int aUnitCount,
                                                   boolean removeNegativeValues)
Deprecated. Since Version 25. Use FinanceUtils.forecast(TimeInMillisSeries, int, TimeUnit, boolean) instead.


headMap

public DateRandomSeries headMap(Date aToKey)
Deprecated. 

subMap

public DateRandomSeries subMap(Date aFromKey,
                               Date aToKey)
Deprecated. 

tailMap

public DateRandomSeries tailMap(Date aFromKey)
Deprecated. 

getReference

public final Date getReference()

step

public final long step()
Returns:
The avergae number of millis between to subsequent keys.

step

public final Date step(Date anExternalKey)
Description copied from interface: TimeSeries
Will increment the input key to the next expected "value".


clear

public void clear()
Specified by:
clear in interface Map<K extends Comparable<K>,V extends Number>
Overrides:
clear in class AbstractMap<K extends Comparable<K>,V extends Number>

colour

public BasicSeries<K,V> colour(Color aPaint)
Specified by:
colour in interface BasicSeries<K extends Comparable<K>,V extends Number>

comparator

public Comparator<? super K> comparator()
Specified by:
comparator in interface SortedMap<K extends Comparable<K>,V extends Number>

containsKey

public boolean containsKey(Object aKey)
Specified by:
containsKey in interface Map<K extends Comparable<K>,V extends Number>
Overrides:
containsKey in class AbstractMap<K extends Comparable<K>,V extends Number>

containsValue

public boolean containsValue(Object aValue)
Specified by:
containsValue in interface Map<K extends Comparable<K>,V extends Number>
Overrides:
containsValue in class AbstractMap<K extends Comparable<K>,V extends Number>

entrySet

public Set<Map.Entry<K,V>> entrySet()
Specified by:
entrySet in interface Map<K extends Comparable<K>,V extends Number>
Specified by:
entrySet in class AbstractMap<K extends Comparable<K>,V extends Number>

firstKey

public K firstKey()
Specified by:
firstKey in interface SortedMap<K extends Comparable<K>,V extends Number>

firstValue

public V firstValue()
Specified by:
firstValue in interface BasicSeries<K extends Comparable<K>,V extends Number>

get

public V get(Object aKey)
Specified by:
get in interface Map<K extends Comparable<K>,V extends Number>
Overrides:
get in class AbstractMap<K extends Comparable<K>,V extends Number>

getColour

public Color getColour()
Specified by:
getColour in interface BasicSeries<K extends Comparable<K>,V extends Number>

getName

public String getName()
Specified by:
getName in interface BasicSeries<K extends Comparable<K>,V extends Number>

getPrimitiveKeys

public final long[] getPrimitiveKeys()
Specified by:
getPrimitiveKeys in interface TimeSeries<K extends Comparable<K>,V extends Number>

getPrimitiveValues

public double[] getPrimitiveValues()
Specified by:
getPrimitiveValues in interface BasicSeries<K extends Comparable<K>,V extends Number>

getResolution

public final TimeUnit getResolution()
Specified by:
getResolution in interface TimeSeries<K extends Comparable<K>,V extends Number>

getTimeInMillisSeries

public final TimeInMillisSeries<V> getTimeInMillisSeries()
Specified by:
getTimeInMillisSeries in interface TimeSeries<K extends Comparable<K>,V extends Number>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<K extends Comparable<K>,V extends Number>
Overrides:
isEmpty in class AbstractMap<K extends Comparable<K>,V extends Number>

lastKey

public K lastKey()
Specified by:
lastKey in interface SortedMap<K extends Comparable<K>,V extends Number>

lastValue

public V lastValue()
Specified by:
lastValue in interface BasicSeries<K extends Comparable<K>,V extends Number>

modify

public void modify(UnaryFunction<V> aFunc)
Specified by:
modify in interface BasicSeries<K extends Comparable<K>,V extends Number>

name

public BasicSeries<K,V> name(String aName)
Specified by:
name in interface BasicSeries<K extends Comparable<K>,V extends Number>

normalise

public void normalise(K aKey,
                      V aNormValue)
Specified by:
normalise in interface TimeSeries<K extends Comparable<K>,V extends Number>

put

public V put(K aKey,
             V aValue)
Specified by:
put in interface Map<K extends Comparable<K>,V extends Number>
Overrides:
put in class AbstractMap<K extends Comparable<K>,V extends Number>

reconstruct

public final TimeSeries<K,V> reconstruct(K aFromKey,
                                         K aToKey,
                                         TimeUnit aResolution)
Specified by:
reconstruct in interface TimeSeries<K extends Comparable<K>,V extends Number>

remove

public V remove(Object aKey)
Specified by:
remove in interface Map<K extends Comparable<K>,V extends Number>
Overrides:
remove in class AbstractMap<K extends Comparable<K>,V extends Number>

setColour

public void setColour(Color aPaint)
Specified by:
setColour in interface BasicSeries<K extends Comparable<K>,V extends Number>

setName

public void setName(String aName)
Specified by:
setName in interface BasicSeries<K extends Comparable<K>,V extends Number>

size

public int size()
Specified by:
size in interface Map<K extends Comparable<K>,V extends Number>
Overrides:
size in class AbstractMap<K extends Comparable<K>,V extends Number>

toString

public String toString()
Overrides:
toString in class AbstractMap<K extends Comparable<K>,V extends Number>