WeightedSamplerBase<T>

Base Classes ยท AiDotNet.Data.Sampling

Base class for weighted samplers providing common weight-based functionality.

Inheritance: DataSamplerBase โ†’ WeightedSamplerBase<T>

Implements: IWeightedSampler<T>

Known derived types: WeightedSampler<T>

How It Works

WeightedSamplerBase provides common functionality for samplers that use per-sample weights, including cumulative probability computation and weighted random selection.

Properties

Property Summary
IReadOnlyList<T> Weights { get; set; }
bool Replacement { get; set; }
int Length { get; }
int? NumSamples { get; set; }