| Modifier and Type | Field and Description |
|---|---|
double |
backwardExtrapolationDuration
Gets or sets the amount of time to extrapolate backward before the property becomes undefined.
|
Integer |
backwardExtrapolationType
Gets or sets the type of extrapolation to perform when a value is requested at a time before any available samples.
|
Packable[] |
derivativeTypes
Gets the derivative types used by this property.
|
double |
forwardExtrapolationDuration
Gets or sets the amount of time to extrapolate forward before the property becomes undefined.
|
Integer |
forwardExtrapolationType
Gets or sets the type of extrapolation to perform when a value is requested at a time after any available samples.
|
InterpolationAlgorithm |
interpolationAlgorithm
Gets the interpolation algorithm to use when retrieving a value.
|
double |
interpolationDegree
Gets the degree of interpolation to perform when retrieving a value.
|
T |
type
Gets the type of property.
|
| Constructor and Description |
|---|
SampledProperty(T type)
A
Property whose value is interpolated for a given time from the provided set of samples and
specified interpolation algorithm and degree. |
SampledProperty(T type,
T[] derivativeTypes)
A
Property whose value is interpolated for a given time from the provided set of samples and
specified interpolation algorithm and degree. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSample(JulianDate time,
T value)
Adds a new sample
|
void |
addSample(JulianDate time,
T value,
T[] derivatives)
Adds a new sample
|
void |
addSamples(JulianDate[] times,
T[] values)
Adds an array of samples
|
void |
addSamples(JulianDate[] times,
T[] values,
T[] derivativeValues)
Adds an array of samples
|
void |
addSamplesPackedArray(double[] packedSamples,
JulianDate epoch)
Adds samples as a single packed array where each new sample is represented as a date,
followed by the packed representation of the corresponding value and derivatives.
|
boolean |
removeSample(JulianDate time)
Removes a sample at the given time, if present.
|
void |
removeSamples(TimeInterval time)
Removes all samples for the given time interval.
|
void |
setInterpolationOptions(SampledPropertyInterpolationOptions options)
Sets the algorithm and degree to use when interpolating a value.
|
definitionChanged, equals, getValue, getValue, getValueOrUndefined, isConstant@JsProperty public double backwardExtrapolationDuration
@JsProperty public Integer backwardExtrapolationType
ExtrapolationType.NONE()@JsProperty public Packable[] derivativeTypes
@JsProperty public double forwardExtrapolationDuration
@JsProperty public Integer forwardExtrapolationType
ExtrapolationType.NONE()@JsProperty public InterpolationAlgorithm interpolationAlgorithm
LinearApproximation@JsProperty public double interpolationDegree
@JsConstructor public SampledProperty(T type)
Property whose value is interpolated for a given time from the provided set of samples and
specified interpolation algorithm and degree.type - The type of property.@JsConstructor public SampledProperty(T type, T[] derivativeTypes)
Property whose value is interpolated for a given time from the provided set of samples and
specified interpolation algorithm and degree.type - The type of property.derivativeTypes - When supplied, indicates that samples will contain derivative information of the specified types.@JsMethod public void addSample(JulianDate time, T value)
time - The sample time.value - The value at the provided time.@JsMethod public void addSample(JulianDate time, T value, T[] derivatives)
time - The sample time.value - The value at the provided time.derivatives - The array of derivatives at the provided time.@JsMethod public void addSamples(JulianDate[] times, T[] values)
times - An array of JulianDate instances where each index is a sample time.values - The array of values, where each value corresponds to the provided times index.@JsMethod public void addSamples(JulianDate[] times, T[] values, T[] derivativeValues)
times - An array of JulianDate instances where each index is a sample time.values - The array of values, where each value corresponds to the provided times index.derivativeValues - An array where each item is the array of derivatives at the equivalent time index.@JsMethod
public void addSamplesPackedArray(double[] packedSamples,
JulianDate epoch)
packedSamples - The array of packed samples.epoch - If any of the dates in packedSamples are numbers, they are considered an offset from this epoch, in seconds.@JsMethod public boolean removeSample(JulianDate time)
time - The sample time.@JsMethod public void removeSamples(TimeInterval time)
time - The time interval for which to remove all samples.@JsMethod public void setInterpolationOptions(SampledPropertyInterpolationOptions options)
options - OptionsCopyright © 2019. All rights reserved.