public interface BasicSeries<K extends Comparable<? super K>,V extends Number> extends SortedMap<K,V>
BasicSeries.NaturallySequenced
is typically used with time series data.Modifier and Type | Interface and Description |
---|---|
static interface |
BasicSeries.NaturallySequenced<K extends Comparable<? super K>,V extends Number>
A series with naturally sequenced keys - given any key there is a natural "next" key, e.g.
|
static class |
BasicSeries.TimeSeriesBuilder<K extends Comparable<? super K>> |
Modifier and Type | Field and Description |
---|---|
static BasicSeries.TimeSeriesBuilder<Calendar> |
CALENDAR |
static BasicSeries.TimeSeriesBuilder<CalendarDate> |
CALENDAR_DATE |
static BasicSeries.TimeSeriesBuilder<Date> |
DATE |
static BasicSeries.TimeSeriesBuilder<Instant> |
INSTANT |
static BasicSeries.TimeSeriesBuilder<LocalDate> |
LOCAL_DATE |
static BasicSeries.TimeSeriesBuilder<LocalDateTime> |
LOCAL_DATE_TIME |
static BasicSeries.TimeSeriesBuilder<LocalTime> |
LOCAL_TIME |
static BasicSeries.TimeSeriesBuilder<OffsetDateTime> |
OFFSET_DATE_TIME |
static BasicSeries.TimeSeriesBuilder<ZonedDateTime> |
ZONED_DATE_TIME |
Modifier and Type | Method and Description |
---|---|
PrimitiveSeries |
asPrimitive() |
BasicSeries<K,V> |
colour(ColourData colour) |
static <K extends Comparable<? super K>> |
coordinate(List<? extends BasicSeries<K,?>> uncoordinated) |
double |
doubleValue(K key) |
static <K extends Comparable<? super K>> |
findEarliestFirstKey(Collection<? extends BasicSeries<K,?>> collection) |
static <K extends Comparable<? super K>> |
findEarliestLastKey(Collection<? extends BasicSeries<K,?>> collection) |
static <K extends Comparable<? super K>> |
findLatestFirstKey(Collection<? extends BasicSeries<K,?>> collection) |
static <K extends Comparable<? super K>> |
findLatestLastKey(Collection<? extends BasicSeries<K,?>> collection) |
V |
firstValue() |
V |
get(K key) |
ColourData |
getColour() |
String |
getName() |
V |
lastValue() |
static BasicSeries<Double,Double> |
make(DenseArray.Factory<Double> arrayFactory) |
static BasicSeries<Double,Double> |
make(DenseArray.Factory<Double> arrayFactory,
BinaryFunction<Double> accumulator) |
static <N extends Number & Comparable<? super N>> |
make(DenseArray.Factory<N> arrayFactory,
Structure1D.IndexMapper<N> indexMapper) |
static <N extends Number & Comparable<? super N>> |
make(DenseArray.Factory<N> arrayFactory,
Structure1D.IndexMapper<N> indexMapper,
BinaryFunction<N> accumulator) |
BasicSeries<K,V> |
name(String name) |
double |
put(K key,
double value) |
V |
put(K key,
V value)
Some implementations may specify an accumulator function to be used with subsequent put operation with
the same key.
|
default void |
putAll(Collection<? extends KeyValue<? extends K,? extends V>> data) |
comparator, entrySet, firstKey, headMap, keySet, lastKey, subMap, tailMap, values
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
static final BasicSeries.TimeSeriesBuilder<Calendar> CALENDAR
static final BasicSeries.TimeSeriesBuilder<CalendarDate> CALENDAR_DATE
static final BasicSeries.TimeSeriesBuilder<Date> DATE
static final BasicSeries.TimeSeriesBuilder<Instant> INSTANT
static final BasicSeries.TimeSeriesBuilder<LocalDate> LOCAL_DATE
static final BasicSeries.TimeSeriesBuilder<LocalDateTime> LOCAL_DATE_TIME
static final BasicSeries.TimeSeriesBuilder<LocalTime> LOCAL_TIME
static final BasicSeries.TimeSeriesBuilder<OffsetDateTime> OFFSET_DATE_TIME
static final BasicSeries.TimeSeriesBuilder<ZonedDateTime> ZONED_DATE_TIME
static <K extends Comparable<? super K>> CoordinatedSet<K> coordinate(List<? extends BasicSeries<K,?>> uncoordinated)
static <K extends Comparable<? super K>> K findEarliestFirstKey(Collection<? extends BasicSeries<K,?>> collection)
static <K extends Comparable<? super K>> K findEarliestLastKey(Collection<? extends BasicSeries<K,?>> collection)
static <K extends Comparable<? super K>> K findLatestFirstKey(Collection<? extends BasicSeries<K,?>> collection)
static <K extends Comparable<? super K>> K findLatestLastKey(Collection<? extends BasicSeries<K,?>> collection)
static BasicSeries<Double,Double> make(DenseArray.Factory<Double> arrayFactory)
static BasicSeries<Double,Double> make(DenseArray.Factory<Double> arrayFactory, BinaryFunction<Double> accumulator)
static <N extends Number & Comparable<? super N>> BasicSeries<N,N> make(DenseArray.Factory<N> arrayFactory, Structure1D.IndexMapper<N> indexMapper)
static <N extends Number & Comparable<? super N>> BasicSeries<N,N> make(DenseArray.Factory<N> arrayFactory, Structure1D.IndexMapper<N> indexMapper, BinaryFunction<N> accumulator)
PrimitiveSeries asPrimitive()
BasicSeries<K,V> colour(ColourData colour)
double doubleValue(K key)
V firstValue()
ColourData getColour()
String getName()
V lastValue()
BasicSeries<K,V> name(String name)
double put(K key, double value)
put(Comparable, Number)
V put(K key, V value)
Map
.put
in interface Map<K extends Comparable<? super K>,V extends Number>
Map.put(java.lang.Object, java.lang.Object)
default void putAll(Collection<? extends KeyValue<? extends K,? extends V>> data)
Copyright © 2019 Optimatika. All rights reserved.