Skip to content

meos.js


meos.js / TFloatSeqSet

Class: TFloatSeqSet ​

Defined in: core/types/basic/tfloat/TFloatSeqSet.ts:18

Temporal float — SequenceSet subtype.

A set of disjoint float sequences. Wraps a MEOS TFloatSeqSet pointer.

Example ​

ts
const s1 = TFloatSeq.fromInstants([i1, i2]);
const s2 = TFloatSeq.fromInstants([i3, i4]);
const ss = TFloatSeqSet.fromSequences([s1, s2]);

Extends ​

Constructors ​

Constructor ​

ts
new TFloatSeqSet(inner): TFloatSeqSet;

Defined in: core/types/basic/tfloat/TFloat.ts:91

Parameters ​

inner ​

number

Returns ​

TFloatSeqSet

Inherited from ​

TFloat.constructor

Accessors ​

inner ​

Get Signature ​

ts
get inner(): number;

Defined in: core/types/temporal/Temporal.ts:188

Raw WASM pointer. Use when passing this value to low-level functions.

Returns ​

number

Inherited from ​

TFloat.inner

Methods ​

[dispose]() ​

ts
dispose: void;

Defined in: core/types/temporal/Temporal.ts:206

Explicit Resource Management support. Allows using t = TBool.fromString(...) to free automatically.

Returns ​

void

Inherited from ​

TFloat.[dispose]


abs() ​

ts
abs(): this;

Defined in: core/types/basic/tnumber/TNumber.ts:72

Returns a new temporal with each value replaced by its absolute value. MEOS: tnumber_abs

Returns ​

this

Inherited from ​

TFloat.abs


add() ​

ts
add(d): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:223

Add a constant float to every instant. MEOS: add_tfloat_float

Parameters ​

d ​

number

Returns ​

TFloat

Inherited from ​

TFloat.add


addTemporal() ​

ts
addTemporal(other): this;

Defined in: core/types/basic/tnumber/TNumber.ts:129

Adds another TNumber to this one instant-by-instant. MEOS: add_tnumber_tnumber

Parameters ​

other ​

TNumber

Returns ​

this

Inherited from ​

TFloat.addTemporal


alwaysEq() ​

ts
alwaysEq(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:301

Returns true if the value is always equal to d. MEOS: always_eq_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.alwaysEq


alwaysGe() ​

ts
alwaysGe(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:321

Returns true if the value is always >= d. MEOS: always_ge_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.alwaysGe


alwaysGt() ​

ts
alwaysGt(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:317

Returns true if the value is always greater than d. MEOS: always_gt_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.alwaysGt


alwaysLe() ​

ts
alwaysLe(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:313

Returns true if the value is always <= d. MEOS: always_le_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.alwaysLe


alwaysLt() ​

ts
alwaysLt(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:309

Returns true if the value is always less than d. MEOS: always_lt_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.alwaysLt


alwaysNe() ​

ts
alwaysNe(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:305

Returns true if the value is always not equal to d. MEOS: always_ne_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.alwaysNe


appendInstant() ​

ts
appendInstant(
   inst, 
   maxdist?, 
   maxt?, 
   expand?): this;

Defined in: core/types/temporal/Temporal.ts:572

Appends an instant to this temporal, returning a new temporal. MEOS: temporal_append_tinstant

Parameters ​

inst ​

this

The instant to append (same subtype as this).

maxdist? ​

number = 0

Maximum distance gap allowed (0 = no limit).

maxt? ​

number = 0

Maximum time gap as interval pointer (0 = no limit).

expand? ​

boolean = false

Whether to expand the sequence in-place.

Returns ​

this

Inherited from ​

TFloat.appendInstant


appendSequence() ​

ts
appendSequence(seq, expand?): this;

Defined in: core/types/temporal/Temporal.ts:582

Appends a sequence to this temporal, returning a new temporal. MEOS: temporal_append_tsequence

Parameters ​

seq ​

this

expand? ​

boolean = false

Returns ​

this

Inherited from ​

TFloat.appendSequence


asHexWKB() ​

ts
asHexWKB(): string;

Defined in: core/types/temporal/Temporal.ts:228

Returns the hex-encoded WKB representation.

Uses the hand-written temporal_as_hexwkb_w wrapper which internally passes variant=4 (extended WKB) and discards size_out.

MEOS: temporal_as_hexwkb

Returns ​

string

Inherited from ​

TFloat.asHexWKB


asMFJSON() ​

ts
asMFJSON(
   withBbox?, 
   flags?, 
   precision?, 
   srs?): string;

Defined in: core/types/temporal/Temporal.ts:250

Returns the MF-JSON representation.

The hand-written wrapper converts an empty srs string to C NULL so that callers can omit the SRS without passing a null pointer directly.

MEOS: temporal_as_mfjson

Parameters ​

withBbox? ​

boolean = true

Include bounding box in the output (default true)

flags? ​

number = 3

Output flags (default 3)

precision? ​

number = 6

Coordinate decimal precision (default 6)

srs? ​

string | null

Spatial Reference System string, or null to omit

Returns ​

string

Inherited from ​

TFloat.asMFJSON


at() ​

ts
at(d): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:259

Restrict to instants where the value equals d. MEOS: tfloat_at_value

Parameters ​

d ​

number

Returns ​

TFloat

Inherited from ​

TFloat.at


atMax() ​

ts
atMax(): this;

Defined in: core/types/temporal/Temporal.ts:421

Restricts to instants where the value is the maximum. MEOS: temporal_at_max

Returns ​

this

Inherited from ​

TFloat.atMax


atMin() ​

ts
atMin(): this;

Defined in: core/types/temporal/Temporal.ts:416

Restricts to instants where the value is the minimum. MEOS: temporal_at_min

Returns ​

this

Inherited from ​

TFloat.atMin


atSpan() ​

ts
atSpan(span): this;

Defined in: core/types/basic/tnumber/TNumber.ts:107

Restricts to instants whose value falls in span. MEOS: tnumber_at_span

Parameters ​

span ​

number

Returns ​

this

Inherited from ​

TFloat.atSpan


atSpanSet() ​

ts
atSpanSet(ss): this;

Defined in: core/types/basic/tnumber/TNumber.ts:110

Restricts to instants whose value falls in ss. MEOS: tnumber_at_spanset

Parameters ​

ss ​

number

Returns ​

this

Inherited from ​

TFloat.atSpanSet


atTBox() ​

ts
atTBox(box): this;

Defined in: core/types/basic/tnumber/TNumber.ts:113

Restricts to the value-time region defined by box. MEOS: tnumber_at_tbox

Parameters ​

box ​

number

Returns ​

this

Inherited from ​

TFloat.atTBox


atTsTzSet() ​

ts
atTsTzSet(s): this;

Defined in: core/types/temporal/Temporal.ts:440

Restricts to the given timestamp set. MEOS: temporal_at_tstzset

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

TFloat.atTsTzSet


atTsTzSpan() ​

ts
atTsTzSpan(s): this;

Defined in: core/types/temporal/Temporal.ts:445

Restricts to the given timestamp span. MEOS: temporal_at_tstzspan

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

TFloat.atTsTzSpan


atTsTzSpanSet() ​

ts
atTsTzSpanSet(ss): this;

Defined in: core/types/temporal/Temporal.ts:450

Restricts to the given timestamp span set. MEOS: temporal_at_tstzspanset

Parameters ​

ss ​

number

Returns ​

this

Inherited from ​

TFloat.atTsTzSpanSet


ceil() ​

ts
ceil(): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:389

Returns a new temporal with each value rounded up to the nearest integer. MEOS: tfloat_ceil

Returns ​

TFloat

Inherited from ​

TFloat.ceil


copy() ​

ts
copy(): this;

Defined in: core/types/temporal/Temporal.ts:214

Returns a deep copy of this temporal value. MEOS: temporal_copy

Returns ​

this

Inherited from ​

TFloat.copy


degrees() ​

ts
degrees(normalize?): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:403

Converts each value from radians to degrees.

Parameters ​

normalize? ​

boolean = false

If true, normalises the result to [0, 360) (default false). MEOS: tfloat_degrees

Returns ​

TFloat

Inherited from ​

TFloat.degrees


deltaValue() ​

ts
deltaValue(): this;

Defined in: core/types/basic/tnumber/TNumber.ts:78

Returns a new temporal where each value is the difference from the previous instant's value (first instant gets 0). MEOS: tnumber_delta_value

Returns ​

this

Inherited from ​

TFloat.deltaValue


distanceScalar() ​

ts
distanceScalar(scalar): this;

Defined in: core/types/basic/tnumber/TNumber.ts:173

Returns the temporal distance between this and a scalar value. Result is a TFloat with the instantaneous distance at each timestamp. MEOS: tdistance_tint_int / tdistance_tfloat_float

Parameters ​

scalar ​

number

Returns ​

this

Inherited from ​

TFloat.distanceScalar


distanceTemporal() ​

ts
distanceTemporal(other): this;

Defined in: core/types/basic/tnumber/TNumber.ts:181

Returns the temporal distance between this and another TNumber. MEOS: tdistance_tnumber_tnumber

Parameters ​

other ​

TNumber

Returns ​

this

Inherited from ​

TFloat.distanceTemporal


div() ​

ts
div(d): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:247

Divide every instant by a constant float. MEOS: div_tfloat_float

Parameters ​

d ​

number

Returns ​

TFloat

Inherited from ​

TFloat.div


divTemporal() ​

ts
divTemporal(other): this;

Defined in: core/types/basic/tnumber/TNumber.ts:144

Divides this by another TNumber. MEOS: div_tnumber_tnumber

Parameters ​

other ​

TNumber

Returns ​

this

Inherited from ​

TFloat.divTemporal


durationMs() ​

ts
durationMs(ignoreGaps?): number;

Defined in: core/types/temporal/Temporal.ts:400

Returns the total duration as a number of milliseconds.

Uses the hand-written temporal_duration_us_w wrapper which converts the MEOS Interval* return value to a plain int64 (total microseconds). The result is divided by 1000 to return milliseconds.

Pass ignoreGaps=true to sum only sequence durations, ignoring the time gaps between sequences in a SequenceSet.

MEOS: temporal_duration

Parameters ​

ignoreGaps? ​

boolean = false

Returns ​

number

Inherited from ​

TFloat.durationMs


endInstant() ​

ts
endInstant(): this;

Defined in: core/types/temporal/Temporal.ts:301

Returns the last instant as a new instance of the same subtype. MEOS: temporal_end_instant

Returns ​

this

Inherited from ​

TFloat.endInstant


endTimestamp() ​

ts
endTimestamp(): number;

Defined in: core/types/temporal/Temporal.ts:377

Returns the last timestamp as microseconds since 2000-01-01 UTC. MEOS: temporal_end_timestamptz

Returns ​

number

Inherited from ​

TFloat.endTimestamp


endValue() ​

ts
endValue(): number;

Defined in: core/types/basic/tfloat/TFloat.ts:183

Ending value of the temporal. MEOS: tfloat_end_value

Returns ​

number

Inherited from ​

TFloat.endValue


equals() ​

ts
equals(other): boolean;

Defined in: core/types/temporal/Temporal.ts:602

Pointer-based identity check. For value equality, use the generated teq_* / temporal_eq functions.

Parameters ​

other ​

Temporal<number>

Returns ​

boolean

Inherited from ​

TFloat.equals


everEq() ​

ts
everEq(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:276

Returns true if the value is ever equal to d. MEOS: ever_eq_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.everEq


everGe() ​

ts
everGe(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:296

Returns true if the value is ever >= d. MEOS: ever_ge_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.everGe


everGt() ​

ts
everGt(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:292

Returns true if the value is ever greater than d. MEOS: ever_gt_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.everGt


everLe() ​

ts
everLe(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:288

Returns true if the value is ever <= d. MEOS: ever_le_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.everLe


everLt() ​

ts
everLt(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:284

Returns true if the value is ever less than d. MEOS: ever_lt_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.everLt


everNe() ​

ts
everNe(d): boolean;

Defined in: core/types/basic/tfloat/TFloat.ts:280

Returns true if the value is ever not equal to d. MEOS: ever_ne_tfloat_float

Parameters ​

d ​

number

Returns ​

boolean

Inherited from ​

TFloat.everNe


exp() ​

ts
exp(): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:413

Applies e^x to each value. MEOS: tfloat_exp

Returns ​

TFloat

Inherited from ​

TFloat.exp


floor() ​

ts
floor(): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:394

Returns a new temporal with each value rounded down to the nearest integer. MEOS: tfloat_floor

Returns ​

TFloat

Inherited from ​

TFloat.floor


free() ​

ts
free(): void;

Defined in: core/types/temporal/Temporal.ts:198

Frees the underlying MEOS allocation.

After calling free(), the instance must not be used. Calls the hand-written meos_free wrapper from res/bindings_c_header.txt.

Returns ​

void

Inherited from ​

TFloat.free


instantN() ​

ts
instantN(n): this;

Defined in: core/types/temporal/Temporal.ts:335

Returns the n-th instant (0-based index).

Uses the hand-written temporal_instant_n_w wrapper which converts the 0-based JS index to the 1-based index expected by MEOS internally.

MEOS: temporal_instant_n

Parameters ​

n ​

number

Returns ​

this

Inherited from ​

TFloat.instantN


integral() ​

ts
integral(): number;

Defined in: core/types/basic/tnumber/TNumber.ts:61

Returns the temporal integral (area under the curve). MEOS: tnumber_integral

Returns ​

number

Inherited from ​

TFloat.integral


interpolation() ​

ts
interpolation(): TInterpolation;

Defined in: core/types/temporal/Temporal.ts:263

Returns the interpolation mode of this temporal value. MEOS: temporal_interp

Returns ​

TInterpolation

Inherited from ​

TFloat.interpolation


ln() ​

ts
ln(): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:418

Applies the natural logarithm ln(x) to each value. MEOS: tfloat_ln

Returns ​

TFloat

Inherited from ​

TFloat.ln


log10() ​

ts
log10(): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:423

Applies the base-10 logarithm log10(x) to each value. MEOS: tfloat_log10

Returns ​

TFloat

Inherited from ​

TFloat.log10


maxInstant() ​

ts
maxInstant(): this;

Defined in: core/types/temporal/Temporal.ts:321

Returns the instant with the maximum value. MEOS: temporal_max_instant

Returns ​

this

Inherited from ​

TFloat.maxInstant


maxValue() ​

ts
maxValue(): number;

Defined in: core/types/basic/tfloat/TFloat.ts:199

Maximum value over the entire temporal. MEOS: tfloat_max_value

Returns ​

number

Inherited from ​

TFloat.maxValue


merge() ​

ts
merge(other): this;

Defined in: core/types/temporal/Temporal.ts:590

Merges this temporal with another, returning a new temporal. MEOS: temporal_merge

Parameters ​

other ​

this

Returns ​

this

Inherited from ​

TFloat.merge


minInstant() ​

ts
minInstant(): this;

Defined in: core/types/temporal/Temporal.ts:311

Returns the instant with the minimum value. MEOS: temporal_min_instant

Returns ​

this

Inherited from ​

TFloat.minInstant


minus() ​

ts
minus(d): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:267

Restrict to instants where the value differs from d. MEOS: tfloat_minus_value

Parameters ​

d ​

number

Returns ​

TFloat

Inherited from ​

TFloat.minus


minusMax() ​

ts
minusMax(): this;

Defined in: core/types/temporal/Temporal.ts:431

Excludes instants where the value is the maximum. MEOS: temporal_minus_max

Returns ​

this

Inherited from ​

TFloat.minusMax


minusMin() ​

ts
minusMin(): this;

Defined in: core/types/temporal/Temporal.ts:426

Excludes instants where the value is the minimum. MEOS: temporal_minus_min

Returns ​

this

Inherited from ​

TFloat.minusMin


minusSpan() ​

ts
minusSpan(span): this;

Defined in: core/types/basic/tnumber/TNumber.ts:116

Excludes instants whose value falls in span. MEOS: tnumber_minus_span

Parameters ​

span ​

number

Returns ​

this

Inherited from ​

TFloat.minusSpan


minusSpanSet() ​

ts
minusSpanSet(ss): this;

Defined in: core/types/basic/tnumber/TNumber.ts:119

Excludes instants whose value falls in ss. MEOS: tnumber_minus_spanset

Parameters ​

ss ​

number

Returns ​

this

Inherited from ​

TFloat.minusSpanSet


minusTBox() ​

ts
minusTBox(box): this;

Defined in: core/types/basic/tnumber/TNumber.ts:122

Excludes the value-time region defined by box. MEOS: tnumber_minus_tbox

Parameters ​

box ​

number

Returns ​

this

Inherited from ​

TFloat.minusTBox


minusTsTzSet() ​

ts
minusTsTzSet(s): this;

Defined in: core/types/temporal/Temporal.ts:455

Excludes the given timestamp set. MEOS: temporal_minus_tstzset

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

TFloat.minusTsTzSet


minusTsTzSpan() ​

ts
minusTsTzSpan(s): this;

Defined in: core/types/temporal/Temporal.ts:460

Excludes the given timestamp span. MEOS: temporal_minus_tstzspan

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

TFloat.minusTsTzSpan


minusTsTzSpanSet() ​

ts
minusTsTzSpanSet(ss): this;

Defined in: core/types/temporal/Temporal.ts:465

Excludes the given timestamp span set. MEOS: temporal_minus_tstzspanset

Parameters ​

ss ​

number

Returns ​

this

Inherited from ​

TFloat.minusTsTzSpanSet


minValue() ​

ts
minValue(): number;

Defined in: core/types/basic/tfloat/TFloat.ts:191

Minimum value over the entire temporal. MEOS: tfloat_min_value

Returns ​

number

Inherited from ​

TFloat.minValue


mult() ​

ts
mult(d): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:239

Multiply every instant by a constant float. MEOS: mul_tfloat_float

Parameters ​

d ​

number

Returns ​

TFloat

Inherited from ​

TFloat.mult


multTemporal() ​

ts
multTemporal(other): this;

Defined in: core/types/basic/tnumber/TNumber.ts:139

Multiplies this by another TNumber. MEOS: mul_tnumber_tnumber

Parameters ​

other ​

TNumber

Returns ​

this

Inherited from ​

TFloat.multTemporal


nad() ​

ts
nad(scalar): number;

Defined in: core/types/basic/tnumber/TNumber.ts:190

Nearest approach distance to a scalar value. MEOS: nad_tint_int / nad_tfloat_float

Parameters ​

scalar ​

number

Returns ​

number

Inherited from ​

TFloat.nad


nadTBox() ​

ts
nadTBox(box): number;

Defined in: core/types/basic/tnumber/TNumber.ts:196

Nearest approach distance to a TBox. MEOS: nad_tint_tbox / nad_tfloat_tbox

Parameters ​

box ​

number

Returns ​

number

Inherited from ​

TFloat.nadTBox


nadTemporal() ​

ts
nadTemporal(other): number;

Defined in: core/types/basic/tnumber/TNumber.ts:193

Nearest approach distance to another TNumber. MEOS: nad_tint_tint / nad_tfloat_tfloat

Parameters ​

other ​

TNumber

Returns ​

number

Inherited from ​

TFloat.nadTemporal


numInstants() ​

ts
numInstants(): number;

Defined in: core/types/temporal/Temporal.ts:278

Returns the number of distinct instants in this temporal value. MEOS: temporal_num_instants

Returns ​

number

Inherited from ​

TFloat.numInstants


numTimestamps() ​

ts
numTimestamps(): number;

Defined in: core/types/temporal/Temporal.ts:349

Returns the number of distinct timestamps. MEOS: temporal_num_timestamps

Returns ​

number

Inherited from ​

TFloat.numTimestamps


radd() ​

ts
radd(scalar): this;

Defined in: core/types/basic/tnumber/TNumber.ts:153

Returns scalar + this instant-by-instant. MEOS: add_int_tint / add_float_tfloat

Parameters ​

scalar ​

number

Returns ​

this

Inherited from ​

TFloat.radd


radians() ​

ts
radians(): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:408

Converts each value from degrees to radians. MEOS: tfloat_radians

Returns ​

TFloat

Inherited from ​

TFloat.radians


rdiv() ​

ts
rdiv(scalar): this;

Defined in: core/types/basic/tnumber/TNumber.ts:162

Returns scalar / this instant-by-instant. MEOS: div_int_tint / div_float_tfloat

Parameters ​

scalar ​

number

Returns ​

this

Inherited from ​

TFloat.rdiv


rmul() ​

ts
rmul(scalar): this;

Defined in: core/types/basic/tnumber/TNumber.ts:159

Returns scalar * this instant-by-instant. MEOS: mul_int_tint / mul_float_tfloat

Parameters ​

scalar ​

number

Returns ​

this

Inherited from ​

TFloat.rmul


rsub() ​

ts
rsub(scalar): this;

Defined in: core/types/basic/tnumber/TNumber.ts:156

Returns scalar - this instant-by-instant. MEOS: sub_int_tint / sub_float_tfloat

Parameters ​

scalar ​

number

Returns ​

this

Inherited from ​

TFloat.rsub


scaleTime() ​

ts
scaleTime(duration): this;

Defined in: core/types/temporal/Temporal.ts:492

Scales the temporal domain to last duration, a Postgres interval string (e.g. '10 minutes') or a raw interval Ptr. MEOS: temporal_scale_time

Parameters ​

duration ​

string | number

Returns ​

this

Inherited from ​

TFloat.scaleTime


scaleValue() ​

ts
scaleValue(width): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:443

Returns a new temporal with the value range scaled to width. MEOS: tfloat_scale_value

Parameters ​

width ​

number

Returns ​

TFloat

Inherited from ​

TFloat.scaleValue


setInterp() ​

ts
setInterp(interp): this;

Defined in: core/types/temporal/Temporal.ts:522

Returns a new temporal with the interpolation changed to interp. Pass TInterpolation values as numbers: Discrete=0, Stepwise=1, Linear=2. MEOS: temporal_set_interp

Parameters ​

interp ​

TInterpolation

Returns ​

this

Inherited from ​

TFloat.setInterp


shiftScaleTime() ​

ts
shiftScaleTime(shift, duration): this;

Defined in: core/types/temporal/Temporal.ts:506

Shifts then scales the temporal domain. shift and duration may each be a Postgres interval string (e.g. '1 hour', '10 minutes') or a raw Ptr. MEOS: temporal_shift_scale_time

Parameters ​

shift ​

string | number

duration ​

string | number

Returns ​

this

Inherited from ​

TFloat.shiftScaleTime


shiftScaleValue() ​

ts
shiftScaleValue(shift, width): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:451

Returns a new temporal with the value range shifted by shift and scaled to width. MEOS: tfloat_shift_scale_value

Parameters ​

shift ​

number

width ​

number

Returns ​

TFloat

Inherited from ​

TFloat.shiftScaleValue


shiftTime() ​

ts
shiftTime(shift): this;

Defined in: core/types/temporal/Temporal.ts:478

Shifts the temporal domain by shift, a Postgres interval string (e.g. '1 hour', '-30 minutes') or a raw interval Ptr. MEOS: temporal_shift_time

Parameters ​

shift ​

string | number

Returns ​

this

Inherited from ​

TFloat.shiftTime


shiftValue() ​

ts
shiftValue(shift): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:435

Returns a new temporal with every value shifted by shift. MEOS: tfloat_shift_value

Parameters ​

shift ​

number

Returns ​

TFloat

Inherited from ​

TFloat.shiftValue


startInstant() ​

ts
startInstant(): this;

Defined in: core/types/temporal/Temporal.ts:291

Returns the first instant as a new instance of the same subtype. MEOS: temporal_start_instant

Returns ​

this

Inherited from ​

TFloat.startInstant


startTimestamp() ​

ts
startTimestamp(): number;

Defined in: core/types/temporal/Temporal.ts:362

Returns the first timestamp as microseconds since 2000-01-01 UTC. MEOS: temporal_start_timestamptz

Returns ​

number

Inherited from ​

TFloat.startTimestamp


startValue() ​

ts
startValue(): number;

Defined in: core/types/basic/tfloat/TFloat.ts:175

Starting value of the temporal. MEOS: tfloat_start_value

Returns ​

number

Inherited from ​

TFloat.startValue


sub() ​

ts
sub(d): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:231

Subtract a constant float from every instant. MEOS: sub_tfloat_float

Parameters ​

d ​

number

Returns ​

TFloat

Inherited from ​

TFloat.sub


subTemporal() ​

ts
subTemporal(other): this;

Defined in: core/types/basic/tnumber/TNumber.ts:134

Subtracts another TNumber from this one. MEOS: sub_tnumber_tnumber

Parameters ​

other ​

TNumber

Returns ​

this

Inherited from ​

TFloat.subTemporal


temporalEq() ​

ts
temporalEq(d): TBool;

Defined in: core/types/basic/tfloat/TFloat.ts:330

Returns a TBool that is true at each instant where this == d. MEOS: teq_tfloat_float

Parameters ​

d ​

number

Returns ​

TBool

Inherited from ​

TFloat.temporalEq


temporalGe() ​

ts
temporalGe(d): TBool;

Defined in: core/types/basic/tfloat/TFloat.ts:350

Returns a TBool that is true at each instant where this >= d. MEOS: tge_tfloat_float

Parameters ​

d ​

number

Returns ​

TBool

Inherited from ​

TFloat.temporalGe


temporalGt() ​

ts
temporalGt(d): TBool;

Defined in: core/types/basic/tfloat/TFloat.ts:346

Returns a TBool that is true at each instant where this > d. MEOS: tgt_tfloat_float

Parameters ​

d ​

number

Returns ​

TBool

Inherited from ​

TFloat.temporalGt


temporalLe() ​

ts
temporalLe(d): TBool;

Defined in: core/types/basic/tfloat/TFloat.ts:342

Returns a TBool that is true at each instant where this <= d. MEOS: tle_tfloat_float

Parameters ​

d ​

number

Returns ​

TBool

Inherited from ​

TFloat.temporalLe


temporalLt() ​

ts
temporalLt(d): TBool;

Defined in: core/types/basic/tfloat/TFloat.ts:338

Returns a TBool that is true at each instant where this < d. MEOS: tlt_tfloat_float

Parameters ​

d ​

number

Returns ​

TBool

Inherited from ​

TFloat.temporalLt


temporalNe() ​

ts
temporalNe(d): TBool;

Defined in: core/types/basic/tfloat/TFloat.ts:334

Returns a TBool that is true at each instant where this != d. MEOS: tne_tfloat_float

Parameters ​

d ​

number

Returns ​

TBool

Inherited from ​

TFloat.temporalNe


timeWeightedAverage() ​

ts
timeWeightedAverage(): number;

Defined in: core/types/basic/tnumber/TNumber.ts:64

Returns the time-weighted average. MEOS: tnumber_twavg

Returns ​

number

Inherited from ​

TFloat.timeWeightedAverage


toInstant() ​

ts
toInstant(): this;

Defined in: core/types/temporal/Temporal.ts:533

Converts to TInstant (must already be an instant). MEOS: temporal_as_tinstant

Returns ​

this

Inherited from ​

TFloat.toInstant


toSequence() ​

ts
toSequence(interp): this;

Defined in: core/types/temporal/Temporal.ts:538

Converts to TSequence with the given interpolation. MEOS: temporal_as_tsequence

Parameters ​

interp ​

TInterpolation

Returns ​

this

Inherited from ​

TFloat.toSequence


toSequenceSet() ​

ts
toSequenceSet(interp): this;

Defined in: core/types/temporal/Temporal.ts:549

Converts to TSequenceSet with the given interpolation. MEOS: temporal_as_tsequenceset

Parameters ​

interp ​

TInterpolation

Returns ​

this

Inherited from ​

TFloat.toSequenceSet


toString() ​

ts
toString(maxdd?): string;

Defined in: core/types/basic/tfloat/TFloat.ts:167

WKT string representation.

Parameters ​

maxdd? ​

number = 15

Maximum number of decimal digits for float values (default 15). MEOS: tfloat_out

Returns ​

string

Inherited from ​

TFloat.toString


toTBox() ​

ts
toTBox(): number;

Defined in: core/types/basic/tnumber/TNumber.ts:100

Returns the temporal bounding box as a raw TBox pointer. MEOS: tnumber_to_tbox

Returns ​

number

Inherited from ​

TFloat.toTBox


toTInt() ​

ts
toTInt(): TInt;

Defined in: core/types/basic/tfloat/TFloat.ts:211

Convert to a TInt by truncating each float value to an integer.

Step interpolation is preserved. Linear sequences become stepwise after conversion because integer values cannot interpolate continuously.

MEOS: tfloat_to_tint

Returns ​

TInt

Inherited from ​

TFloat.toTInt


toValueSpan() ​

ts
toValueSpan(): number;

Defined in: core/types/basic/tnumber/TNumber.ts:94

Returns the value span (range) of this temporal as a raw pointer. MEOS: tnumber_to_span

Returns ​

number

Inherited from ​

TFloat.toValueSpan


trend() ​

ts
trend(): this;

Defined in: core/types/basic/tnumber/TNumber.ts:84

Returns +1 / 0 / -1 at each instant indicating whether the value is increasing, constant, or decreasing. MEOS: tnumber_trend

Returns ​

this

Inherited from ​

TFloat.trend


valueAtTimestamp() ​

ts
valueAtTimestamp(t): number | null;

Defined in: core/types/basic/tfloat/TFloat.ts:376

Evaluates the temporal at a specific timestamp. Returns null when the timestamp is outside the temporal's domain.

Parameters ​

t ​

number

Timestamp in microseconds since 2000-01-01 UTC.

Returns ​

number | null

Inherited from ​

TFloat.valueAtTimestamp


valueN() ​

ts
valueN(n): number;

Defined in: core/types/basic/tfloat/TFloat.ts:363

Returns the n-th distinct float value (0-based index) across all instants.

Parameters ​

n ​

number

0-based index (MEOS internally uses 1-based indexing). MEOS: tfloat_value_n

Returns ​

number

Inherited from ​

TFloat.valueN


fromBaseTemporal() ​

ts
static fromBaseTemporal(d, domain): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:122

Create a TFloat with constant value d spanning the same domain as domain. MEOS: tfloat_from_base_temp

Parameters ​

d ​

number

domain ​

TFloat

Returns ​

TFloat

Inherited from ​

TFloat.fromBaseTemporal


fromBaseTime() ​

ts
static fromBaseTime(
   d, 
   time, 
   type, 
   interp?): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:133

Create a TFloat with constant value d over a time object. Accepts a raw Ptr to a TsTzSet, TsTzSpan, or TsTzSpanSet. For TsTzSpan and TsTzSpanSet, interp selects the interpolation (1=Stepwise, 3=Linear, default Linear). MEOS: tfloatseq_from_base_tstzset / tstzspan / tfloatseqset_from_base_tstzspanset

Parameters ​

d ​

number

time ​

number

type ​

"tstzset" | "tstzspan" | "tstzspanset"

interp? ​

number = 3

Returns ​

TFloat

Inherited from ​

TFloat.fromBaseTime


fromInstant() ​

ts
static fromInstant(value, timestamp): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:149

Create a TFloatInst from a float value and a timestamp.

Parameters ​

value ​

number

The float value.

timestamp ​

number

Microseconds since 2000-01-01 UTC (TimestampTz).

MEOS: tfloatinst_make

Returns ​

TFloat

Inherited from ​

TFloat.fromInstant


fromMFJSON() ​

ts
static fromMFJSON(mfjson): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:114

Parse a TFloat from a MF-JSON string. MEOS: tfloat_from_mfjson

Parameters ​

mfjson ​

string

Returns ​

TFloat

Inherited from ​

TFloat.fromMFJSON


fromSequences() ​

ts
static fromSequences(sequences, normalize?): TFloatSeqSet;

Defined in: core/types/basic/tfloat/TFloatSeqSet.ts:30

Builds a TFloatSeqSet from an array of sequences.

Parameters ​

sequences ​

TFloat[]

Ordered, disjoint array of TFloat sequences.

normalize? ​

boolean = true

Merge adjacent sequences with equal end/start values (default true). MEOS: tsequenceset_make

Returns ​

TFloatSeqSet


fromString() ​

ts
static fromString(wkt): TFloat;

Defined in: core/types/basic/tfloat/TFloat.ts:106

Parse a TFloat from a WKT string.

Accepts all subtypes and interpolations:

  • Instant: "1.5@2000-01-01 00:01:00+00"
  • Linear sequence: "[1.5@2000-01-01, 3.5@2000-01-02]"
  • Step sequence: "Interp=Stepwise;[1.5@2000-01-01, 3.5@2000-01-02]"
  • Discrete: "{1.5@2000-01-01, 3.5@2000-01-02}"

MEOS: tfloat_in

Parameters ​

wkt ​

string

Returns ​

TFloat

Inherited from ​

TFloat.fromString