TimeStampedGenerator<FieldTransform<T>>
public class FieldTransformGenerator<T extends RealFieldElement<T>> extends Object implements TimeStampedGenerator<FieldTransform<T>>
GenericTimeStampedCache
.GenericTimeStampedCache
Constructor | Description |
---|---|
FieldTransformGenerator(Field<T> field,
int neighborsSize,
TransformProvider provider,
double step) |
simple constructor.
|
Modifier and Type | Method | Description |
---|---|---|
List<FieldTransform<T>> |
generate(AbsoluteDate existingDate,
AbsoluteDate date) |
Generate a chronologically sorted list of entries to be cached.
|
public FieldTransformGenerator(Field<T> field, int neighborsSize, TransformProvider provider, double step)
field
- field to which the elements belongneighborsSize
- number of neighborsprovider
- underlying providerstep
- step sizepublic List<FieldTransform<T>> generate(AbsoluteDate existingDate, AbsoluteDate date)
If existingDate
is earlier than date
, the range covered by
generated entries must cover at least from existingDate
(excluded)
to date
(included). If existingDate
is later than date
,
the range covered by generated entries must cover at least from date
(included) to existingDate
(excluded).
The generated entries may cover a range larger than the minimum specified above
if the generator prefers to generate large chunks of data at once. It may
generate again entries already generated by an earlier call (typically at
existingDate
), these extra entries will be silently ignored by the cache.
Non-coverage of the minimum range may lead to a loss of data, as the gap will
not be filled by the GenericTimeStampedCache
in subsequent calls.
The generated entries must be chronologically sorted.
generate
in interface TimeStampedGenerator<T extends RealFieldElement<T>>
existingDate
- date of the closest already existing entry (may be null)date
- date that must be covered by the range of the generated arrayCopyright © 2002-2018 CS Systèmes d'information. All rights reserved.