Given a function, finds the difference in its evaluation of two numbers.
Generates signal weights for n-dim signal data
Generates signal weights for n-dim signal data
Given n marginal signal distributions and assuming independence between the distributions, a joint signal distribution is calculated and a Weight is generated.
vector of weights for signal distributions
weight for joint distribution
Generates numbers to reweight data set given a desired and existing probability distribution over some dimension
Generates numbers to reweight data set given a desired and existing probability distribution over some dimension
desired distribution
existing distribution
Determines whether the weights cover a sufficient range of the input space.
Determines whether the weights cover a sufficient range of the input space.
If the sum of the weights is above the threshold, the weights are returned; otherwise a exceptions.LowProbException is thrown containing the given message.
String to pass to the exception if thrown.
The list of weights.
The threshold to use to evaluate the weights.
The list of weights.
exceptions.LowProbException
if the sum of weights is less than the threshold
Companion object to Weight trait.