1#ifndef SCRAN_BLOCKS_BLOCK_WEIGHTS_HPP
2#define SCRAN_BLOCKS_BLOCK_WEIGHTS_HPP
58 if (
s <
params.lower_bound ||
s == 0) {
83template<
typename Size_,
typename Weight_>
85 if (
policy == WeightPolicy::NONE) {
87 }
else if (
policy == WeightPolicy::EQUAL) {
110template<
typename Weight_ =
double,
typename Size_>
Blocking utilities for libscran.
Definition average_vectors.hpp:15
double compute_variable_weight(double s, const VariableWeightParameters ¶ms)
Definition block_weights.hpp:57
void average_vectors(size_t n, std::vector< Stat_ * > in, Output_ *out, bool skip_nan)
Definition average_vectors.hpp:121
void compute_weights(size_t num_blocks, const Size_ *sizes, WeightPolicy policy, const VariableWeightParameters &variable, Weight_ *weights)
Definition block_weights.hpp:84
WeightPolicy
Definition block_weights.hpp:22
Parameters for compute_variable_weight().
Definition block_weights.hpp:27
double lower_bound
Definition block_weights.hpp:32
double upper_bound
Definition block_weights.hpp:38