std::vector< double > sample_price_path(const Bar &bar, int n_samples, MagnifierDistribution dist=MagnifierDistribution::ENDPOINTS)
Sample n_samples points along the OHLC price path of the bar.
double path_at(double t, double p0, double p1, double p2, double p3, double len0, double len1, double len2, double total)
Maps parameter t in [0,1] to a price on the 3-segment path.
std::vector< double > sample_price_path_volume_weighted(const Bar &bar, int base_samples, double mean_volume, int min_samples=2, int max_samples=64, MagnifierDistribution dist=MagnifierDistribution::ENDPOINTS)
Sample n_samples points along the OHLC price path, weighting the sample density by the ratio of this ...