object DiscretePath
- Companion
- class
Value members
Concrete methods
def sampleContinuous[V, F : Order](f: Double => V, maximumRangeGap: F, maximumDomainGap: Double)(implicit evidence$2: Order[F], nvs: NormedVectorSpace[V, F]): DiscretePath[V, F]
Sample the continuous function f on the closed interval I = [0.0, 1.0]
.
Sample the continuous function f on the closed interval I = [0.0, 1.0]
.
The sampled path π
satisfies the following conditions:
π
starts withf(0.0): V
and ends withf(1.0): V
- each point
v: V
ofπ
is a "sample" of f, in a sense that there ist_v: Double
in the closed intervalI
such thatf(t_v) = v
. Moreover, the sampling is done in an increasing order, meaning that ifv
appears beforew
inπ
, thent_v < t_w
. - two consecutive
v: V
andw: V
ofπ
are "sufficiently close" samples, in a sense that|t_v - w_v| < maximumDomainGap
distance(v, w) < maximumRangeGap
This function is undefined for f which is not continuous (with respect to the metric induced by the norm structure of V; see NormedVectorSpace).
def sampleDouble[V](f: Double => V, maximumRangeGap: Double, maximumDomainGap: Double)(using nvs: NormedVectorSpace[V, Double]): DiscretePath[V, Double]
A wrapper for sampleContinuous that operates on a normed vector space over Double.
A wrapper for sampleContinuous that operates on a normed vector space over Double.
Givens
Givens
The default semigroup instance that concats paths by rebasing.
The default semigroup instance that concats paths by rebasing.
Notice that this structure
- is associative
- is only unital if you identify
x concatRebase zero
withx
, where the former has an extra point. - does not admit inverses. Concatenating a reverse path does not erase the original path.