Returns the time index for the time in the time discretization which is the nearest
to the given time, being greater or equal (i.e. min(i : timeDiscretizationFromArray[i] ≥ time
where timeDiscretizationFromArray[i] ≤ timeDiscretizationFromArray[j]).
Returns the time index for the time in the time discretization which is the nearest
to the given time, being less or equal (i.e. max(i : timeDiscretizationFromArray[i] ≤ time
where timeDiscretizationFromArray[i] ≤ timeDiscretizationFromArray[j]).
Returns the time index for the given time. If the given time is not in the time discretization
the method returns a negative number being (-insertionPoint-1).
Returns the time index for the time in the time discretization which is the nearest
to the given time, being less or equal (i.e. max(i : timeDiscretizationFromArray[i] ≤ time
where timeDiscretizationFromArray[i] ≤ timeDiscretizationFromArray[j]).
Returns the time index for the time in the time discretization which is the nearest
to the given time, being greater or equal (i.e. min(i : timeDiscretizationFromArray[i] ≥ time
where timeDiscretizationFromArray[i] ≤ timeDiscretizationFromArray[j]).
Returns the union of this time discretization with another one. This means that the times of the other time discretization will be added.
In case the tick sizes differ the union will have the smaller tick size, i. e. the finer precision.
Note that when the differing tick sizes are not integer multiples of each other time points might get shifted due to rounding;
for example a.intersect(a.union(b)) might not be equal to a.
Parameters:
that - Another time discretization containing points to add to the time discretization.
Returns:
A new time discretization containing both the time points of this and the other discretization.
Returns the intersection of this time discretization with another one. This means that all times not contained in the other time discretization will be removed.
In case the tick sizes differ the intersection will have the greater tick size, i. e. the coarser precision.
Note that when the differing tick sizes are not integer multiples of each other time points might get shifted due to rounding;
for example a.intersect(a.union(b)) might not be equal to a.
Parameters:
that - Another time discretization containing points to add to the time discretization.
Returns:
A new time discretization containing both the time points of this and the other discretization.