Functions | |
Real | computeSTD (const std::vector< Real > &data, const unsigned int &start_index) |
compute the standard deviation of a data vector by only considering values from a specific index. More... | |
Real | computeMean (const std::vector< Real > &data, const unsigned int &start_index) |
compute the mean of a data vector by only considering values from a specific index. More... | |
std::vector< std::vector< Real > > | sortInput (const std::vector< std::vector< Real >> &inputs, const std::vector< Real > &outputs, const unsigned int samplessub, const Real subset_prob) |
return input values corresponding to the largest po percentile output values. More... | |
std::vector< Real > | sortOutput (const std::vector< Real > &outputs, const unsigned int samplessub, const Real subset_prob) |
return the largest po percentile output values. More... | |
Real | computeMin (const std::vector< Real > &data) |
return the minimum value in a vector. More... | |
std::vector< Real > | computeVectorABS (const std::vector< Real > &data) |
return the absolute values in a vector. More... | |
unsigned int | weightedResample (const std::vector< Real > &weights, Real rnd) |
return a resampled vector from a population given a weight vector. More... | |
Real AdaptiveMonteCarloUtils::computeMean | ( | const std::vector< Real > & | data, |
const unsigned int & | start_index | ||
) |
compute the mean of a data vector by only considering values from a specific index.
the | data vector |
the | starting index |
Definition at line 38 of file AdaptiveMonteCarloUtils.C.
Referenced by AdaptiveImportanceSampler::computeSample(), and computeSTD().
return the minimum value in a vector.
the | data vector |
Definition at line 80 of file AdaptiveMonteCarloUtils.C.
Referenced by AdaptiveMonteCarloDecision::execute().
Real AdaptiveMonteCarloUtils::computeSTD | ( | const std::vector< Real > & | data, |
const unsigned int & | start_index | ||
) |
compute the standard deviation of a data vector by only considering values from a specific index.
the | data vector |
the | starting index |
Definition at line 21 of file AdaptiveMonteCarloUtils.C.
Referenced by AdaptiveImportanceSampler::computeSample().
return the absolute values in a vector.
the | data vector |
Definition at line 86 of file AdaptiveMonteCarloUtils.C.
Referenced by AdaptiveMonteCarloDecision::execute(), and ParallelSubsetSimulation::sampleSetUp().
std::vector< std::vector< Real > > AdaptiveMonteCarloUtils::sortInput | ( | const std::vector< std::vector< Real >> & | inputs, |
const std::vector< Real > & | outputs, | ||
const unsigned int | samplessub, | ||
const Real | subset_prob | ||
) |
return input values corresponding to the largest po percentile output values.
FOR PARALLEL SUBSET SIMULATION SAMPLER ********
the | input vector |
the | output vector |
the | number of samples per subset |
the | subset index |
the | subset intermediate failure probability |
Definition at line 48 of file AdaptiveMonteCarloUtils.C.
Referenced by AdaptiveMonteCarloDecision::execute(), and ParallelSubsetSimulation::sampleSetUp().
std::vector< Real > AdaptiveMonteCarloUtils::sortOutput | ( | const std::vector< Real > & | outputs, |
const unsigned int | samplessub, | ||
const Real | subset_prob | ||
) |
return the largest po percentile output values.
FOR PARALLEL SUBSET SIMULATION SAMPLER ********
the | output vector |
the | number of samples per subset |
the | subset index |
the | subset intermediate failure probability |
Definition at line 66 of file AdaptiveMonteCarloUtils.C.
Referenced by AdaptiveMonteCarloDecision::execute().
unsigned int AdaptiveMonteCarloUtils::weightedResample | ( | const std::vector< Real > & | weights, |
Real | rnd | ||
) |
return a resampled vector from a population given a weight vector.
the | given inputs (population) |
the | weight vector |
the | number of dimensions |
a | random number between 0 and 1 |
Definition at line 95 of file AdaptiveMonteCarloUtils.C.
Referenced by IndependentMHDecision::nextSamples().