Properties

This class exposes no properties.

Methods

MethodDescription

addSegment

addSegment(weight: number, sampler: ScalarSampler): SequenceSamplerBuilder addSegment(weight: number, samplers: ArrayOfScalarSamplers): SequenceSamplerBuilder

Adds a new segment to the sequence.

Note: the dimensions of all segments in the sequence must be equal.

build

build(): ScalarSampler build(): ArrayOfScalarSamplers

Builds the combined sampler from the provided sequence of samplers.

Note: the dimension of the returned sampler is the same as the dimension of the provided segments.