Interface TFloat
- All Superinterfaces:
TNumber
- All Known Implementing Classes:
TFloatInst
,TFloatSeq
,TFloatSeqSet
- Author:
- ARIJIT SAMAL
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
always_equal
(float value) Returns whether the values of "this" are always equal to "value".default boolean
always_greater
(float value) Returns whether the values of "this" are always greater than "value".default boolean
always_greater_or_equal
(float value) Returns whether the values of "this" are always greater than or equal to "value".default boolean
always_less
(float value) Returns whether the values of "this" are always less than "value".default boolean
always_less_or_equal
(float value) Returns whether the values of "this" are always less than or equal to "value".default boolean
always_not_equal
(float value) Returns whether the values of "this" are always not equal to "value".default String
as_wkt
(int max_decimals) Returns a string representation of "this".default TFloat
Returns the derivative of `self`.default float
Returns the end value of "this".default boolean
ever_equal
(float value) Returns whether the values of "this" are ever equal to "value".default boolean
ever_greater
(float value) Returns whether the values of "this" are ever greater than "value".default boolean
ever_greater_or_equal
(float value) Returns whether the values of "this" are ever greater than or equal to "value".default boolean
ever_less
(float value) Returns whether the values of `self` are ever less than "value".default boolean
ever_less_or_equal
(float value) Returns whether the values of "this" are ever less than or equal to "value".default boolean
ever_not_equal
(float value) Returns whether the values of "this" are ever not equal to "value".default TFloat
from_base_temporal
(float value, Temporal base, TInterpolation interp) Returns a new temporal float with the value "value" and the temporal frame of "base".static TFloat
from_base_time
(float value, Time base, TInterpolation interpolation) Returns a new temporal float with the value "value" and the temporal frame of "base".default TFloat
from_mfjson
(String mfjson) Returns a temporal object from a MF-JSON string.jnr.ffi.Pointer
default float
Returns the maximum value of the "this".default float
Returns the minimum value of the "this".default boolean
never_equal
(float value) Returns whether the values of "this" are never equal to "value".default boolean
never_greater
(float value) Returns whether the values of "this" are never greater than "value".default boolean
never_greater_or_equal
(float value) Returns whether the values of "this" are never greater than or equal to "value".default boolean
never_less
(float value) Returns whether the values of "this" are never less than "value".default boolean
never_less_or_equal
(float value) Returns whether the values of "this" are never less than or equal to "value".default boolean
never_not_equal
(float value) Returns whether the values of "this" are never not equal to "value".default Temporal
round
(int max_decimals) Returns "this" rounded to the given number of decimal digits.default float
Returns the start value of "this".default Temporal
temporal_equal
(Number other) Returns the temporal equality relation between "this" and "other".default Temporal
temporal_greater
(Number other) Returns the temporal greater than relation between "this" and "other".default Temporal
temporal_greater_or_equal
(Number other) Returns the temporal greater or equal relation between "this" and "other".default Temporal
temporal_less
(Number other) Returns the temporal less than relation between "this" and "other".default Temporal
temporal_less_or_equal
(Number other) Returns the temporal less or equal relation between "this" and "other".default Temporal
temporal_not_equal
(Number other) Returns the temporal not equal relation between "this" and "other".default Temporal
to_degrees
(boolean normalize) Returns a copy of "this" converted from radians to degrees.default FloatSpan
Returns value span of "this".default Temporal
Returns a copy of this converted from degrees to radians.default String
to_string
(int max_decimals) Returns a string representation of "this".default TInt
to_tint()
Returns a new temporal integer with the values of "this" floored.default float
Returns the value that `self` takes at a certain moment.default FloatSet
Returns the set of values of `self`.default FloatSpan
Returns the value span of "this".default FloatSpanSet
Returns the value spans of `self` taking into account gaps.Methods inherited from interface types.basic.tnumber.TNumber
_add, _mul, _radd, _rmul, _rsub, _rTrueDiv, _sub, _trueDiv, abs, add, at, bounding_tbox, delta_value, distance, div, integral, is_left, is_over_or_left, is_over_or_right, is_right, minus, mul, nearest_approach_distance, radd, rdiv, rmul, rsub, scale_value, shift_scale_value, shift_value, sub, time_weighted_average, value_split, value_time_split
-
Field Details
-
customType
- See Also:
-
-
Method Details
-
getNumberInner
jnr.ffi.Pointer getNumberInner()- Specified by:
getNumberInner
in interfaceTNumber
-
getCustomType
String getCustomType()- Specified by:
getCustomType
in interfaceTNumber
-
getTemporalType
TemporalType getTemporalType()- Specified by:
getTemporalType
in interfaceTNumber
-
from_base_temporal
Returns a new temporal float with the value "value" and the temporal frame of "base".MEOS Functions:
- tfloat_from_base_temp
- Parameters:
value
- Value of the temporal float.base
- Temporal object to get the temporal frame from.interp
- Interpolation of the temporal float.- Returns:
- A new
Float
object.
-
from_base_time
Returns a new temporal float with the value "value" and the temporal frame of "base".MEOS Functions:
- tfloatinst_make
- tfloatseq_from_base_timestampset
- tfloatseq_from_base_time
- tfloatseqset_from_base_time
- Parameters:
value
- Value of the temporal float.base
- Time object to get the temporal frame from.interpolation
- Interpolation of the temporal float.- Returns:
- A new temporal float.
-
from_mfjson
Returns a temporal object from a MF-JSON string. Args: mfjson: The MF-JSON string. Returns: A temporal object from a MF-JSON string. MEOS Functions: tfloat_from_mfjson -
to_string
Returns a string representation of "this".MEOS Functions:
- tfloat_out
- Parameters:
max_decimals
-- Returns:
- A string representation of "this".
-
as_wkt
Returns a string representation of "this".MEOS Functions:
- tfloat_out
- Parameters:
max_decimals
-- Returns:
- A string representation of "this".
-
to_tint
Returns a new temporal integer with the values of "this" floored. This operation can only be performed when the interpolation is stepwise or discrete.MEOS Functions:
- tfloat_to_tint
Raises: ValueError: If the interpolation is linear.- Returns:
- A new temporal integer.
-
to_floatrange
Returns value span of "this".MEOS Functions:
- tnumber_to_span
- Returns:
- An
FloatSpan
with the value span of "this".
-
value_span
Returns the value span of "this".MEOS Functions:
- tnumber_to_span
- Returns:
- An
FloatSpan
with the value span of `self`.
-
value_spans
Returns the value spans of `self` taking into account gaps. Returns: A :class:`FloatSpanSet` with the value spans of `self`. MEOS Functions: tnumber_valuespans- Returns:
-
start_value
default float start_value()Returns the start value of "this".MEOS Functions:
- tfloat_start_value
- Returns:
- A
Float
with the start value.
-
end_value
default float end_value()Returns the end value of "this".MEOS Functions:
- tfloat_end_value
- Returns:
- A
Float
with the end value.
-
value_set
Returns the set of values of `self`. Note that when the interpolation is linear, the set will contain only the waypoints. Returns: A :class:`set` with the values of `self`. MEOS Functions: tint_values -
min_value
default float min_value()Returns the minimum value of the "this".MEOS Functions:
- tfloat_min_value
- Returns:
- A
Float
with the minimum value.
-
max_value
default float max_value()Returns the maximum value of the "this".MEOS Functions:
- tfloat_max_value
- Returns:
- A
Float
with the maximum value.
-
always_equal
default boolean always_equal(float value) Returns whether the values of "this" are always equal to "value".MEOS Functions:
- tfloat_always_eq
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are always equal to "value", * "False" otherwise.
-
always_not_equal
default boolean always_not_equal(float value) Returns whether the values of "this" are always not equal to "value".MEOS Functions:
- tfloat_ever_eq
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are always not equal to "value", * "False" otherwise.
-
always_less
default boolean always_less(float value) Returns whether the values of "this" are always less than "value".MEOS Functions:
- tfloat_always_lt
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are always less than "value", * "False" otherwise.
-
always_less_or_equal
default boolean always_less_or_equal(float value) Returns whether the values of "this" are always less than or equal to "value".MEOS Functions:
- tfloat_always_le
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are always less than or equal to * "value", "False" otherwise.
-
always_greater_or_equal
default boolean always_greater_or_equal(float value) Returns whether the values of "this" are always greater than or equal to "value".MEOS Functions:
- tfloat_ever_lt
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are always greater than or equal to * "value", "False" otherwise.
-
always_greater
default boolean always_greater(float value) Returns whether the values of "this" are always greater than "value".MEOS Functions:
- tfloat_ever_le
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are always greater than "value", * " `False`" otherwise.
-
ever_less
default boolean ever_less(float value) Returns whether the values of `self` are ever less than "value".MEOS Functions:
- tfloat_ever_lt
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are ever less than "value", * "False" otherwise.
-
ever_less_or_equal
default boolean ever_less_or_equal(float value) Returns whether the values of "this" are ever less than or equal to "value".MEOS Functions:
- tfloat_ever_le
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are ever less than or equal to * "value", "False" otherwise.
-
ever_equal
default boolean ever_equal(float value) Returns whether the values of "this" are ever equal to "value".MEOS Functions:
- tfloat_ever_eq
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are ever equal to "value", "False" * otherwise.
-
ever_not_equal
default boolean ever_not_equal(float value) Returns whether the values of "this" are ever not equal to "value".MEOS Functions:
- tfloat_always_eq
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are ever not equal to "value", * "False" otherwise.
-
ever_greater_or_equal
default boolean ever_greater_or_equal(float value) Returns whether the values of "this" are ever greater than or equal to "value".MEOS Functions:
- tfloat_always_lt
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are ever greater than or equal to * "value", "False" otherwise.
-
ever_greater
default boolean ever_greater(float value) Returns whether the values of "this" are ever greater than "value".MEOS Functions:
- tfloat_always_le
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are ever greater than "value", * "False" otherwise.
-
never_equal
default boolean never_equal(float value) Returns whether the values of "this" are never equal to "value".MEOS Functions:
- tfloat_ever_eq
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are never equal to "value", * "False" otherwise.
-
never_not_equal
default boolean never_not_equal(float value) Returns whether the values of "this" are never not equal to "value".MEOS Functions:
- tfloat_always_eq
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are never not equal to "value", * "False" otherwise.
-
never_less
default boolean never_less(float value) Returns whether the values of "this" are never less than "value".MEOS Functions:
- tfloat_ever_lt
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are never less than "value", * "False" otherwise.
-
never_less_or_equal
default boolean never_less_or_equal(float value) Returns whether the values of "this" are never less than or equal to "value".MEOS Functions:
- tfloat_ever_le
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are never less than or equal to * "value", "False" otherwise.
-
never_greater_or_equal
default boolean never_greater_or_equal(float value) Returns whether the values of "this" are never greater than or equal to "value".MEOS Functions:
- tfloat_always_lt
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this "are never greater than or equal to * "value", "False" otherwise.
-
never_greater
default boolean never_greater(float value) Returns whether the values of "this" are never greater than "value".MEOS Functions:
- tfloat_always_le
- Parameters:
value
-Float
to compare.- Returns:
- "True" if the values of "this" are never greater than "value", * "False" otherwise.
-
temporal_equal
Returns the temporal equality relation between "this" and "other".MEOS Functions:
- teq_tfloat_float
- teq_temporal_temporal
-
temporal_not_equal
Returns the temporal not equal relation between "this" and "other".MEOS Functions:
- tne_tfloat_float
- tne_temporal_temporal
-
temporal_less
Returns the temporal less than relation between "this" and "other".MEOS Functions:
- tlt_tfloat_float
- tlt_temporal_temporal
-
temporal_less_or_equal
Returns the temporal less or equal relation between "this" and "other".MEOS Functions:
- tle_tfloat_float
- tle_temporal_temporal
-
temporal_greater_or_equal
Returns the temporal greater or equal relation between "this" and "other".MEOS Functions:
- tge_tfloat_float
- tge_temporal_temporal
-
temporal_greater
Returns the temporal greater than relation between "this" and "other".MEOS Functions:
- tgt_tfloat_float
- tgt_temporal_temporal
-
value_at_timestamp
Returns the value that `self` takes at a certain moment. Args: timestamp: The moment to get the value. Returns: A class:`float` with the value of `self` at `timestamp`. MEOS Functions: tfloat_value_at_timestamp -
derivative
Returns the derivative of `self`. Returns: A new :class:`TFloat` instance. MEOS Functions: tfloat_derivative -
to_degrees
Returns a copy of "this" converted from radians to degrees.MEOS Functions:
- tfloat_degrees
- Parameters:
normalize
- normalize: If True, the result will be normalized to the range [0, 360).- Returns:
- A
TFloat
instance.
-
to_radians
Returns a copy of this converted from degrees to radians.MEOS Functions:
- tfloat_radians
- Returns:
- A new
TFloat
instance.
-
round
Returns "this" rounded to the given number of decimal digits.MEOS Functions:
- tfloat_round
- Parameters:
max_decimals
- Maximum number of decimal digits.- Returns:
- A new
TFloat
instance.
-