|
#include <PSDContinuous.h>
Public Member Functions | |
bool | operator< (const double probability) const |
Static Public Member Functions | |
static void | print (std::vector< PSDContinuous > &psd) |
static void | validateCumulativeDistribution (std::vector< PSDContinuous > &psd) |
static std::vector< PSDContinuous > | createPSDFromRadiiAndProbabilities (const std::vector< double > &radius, const std::vector< double > &probability) |
static void | convertSubtractiveToCumulative (std::vector< PSDContinuous > &psd) |
static void | convertCumulativeToSubtractive (std::vector< PSDContinuous > &psd) |
static void | convertSubtractiveVolumeToNumber (std::vector< PSDContinuous > &psd) |
static void | convertCumulativeVolumeToNumber (std::vector< PSDContinuous > &psd) |
static void | interpolateCSD (std::vector< PSDContinuous > &psd, unsigned n) |
static std::vector< PSDContinuous > | getCumulativeNumberFromVolume (std::vector< PSDContinuous > psd) |
static std::vector< PSDContinuous > | cutoffCumulativeNumber (std::vector< PSDContinuous > psd, double quantileMin, double quantileMax, double minPolydispersity=0.1) |
static std::vector< PSDContinuous > | cutoffAndSqueezeCumulativeNumber (std::vector< PSDContinuous > psd, double quantileMin, double quantileMax, double squeeze, double minPolydispersity=0.1) |
static void | convertSubtractiveNumberToVolume (std::vector< PSDContinuous > &psd) |
static void | convertCumulativeNumberToVolume (std::vector< PSDContinuous > &psd) |
static double | getD0 (const std::vector< PSDContinuous > &psd) |
static double | getD10 (const std::vector< PSDContinuous > &psd) |
static double | getD50 (const std::vector< PSDContinuous > &psd) |
static double | getD90 (const std::vector< PSDContinuous > &psd) |
static double | getD100 (const std::vector< PSDContinuous > &psd) |
static double | getQuantile (std::vector< PSDContinuous > psd, double quantile) |
static double | getVolumetricMean (std::vector< PSDContinuous > psd) |
Public Attributes | |
double | radius |
double | probability |
Friends | |
std::ostream & | operator<< (std::ostream &os, const PSDContinuous &psd) |
Writes to output stream. More... | |
std::istream & | operator>> (std::istream &is, PSDContinuous &psd) |
Reads from input stream. More... | |
Stores a radius and a cumulative number density: To be used as a vector, std::vector<PSDContinuous> psd
Cumulative number density: nc_i is the number fraction of particles whose radius is less than r_i. It requires vc_0=0, vc_end=1. This variable is used as psd in MercuryDPM, as it can be interpreted as the probability that a particle's radius is is less than r_i: p(r<r_i) = nc_i.
Cumulative volume density: vc_i is the volume fraction of particles whose radius is less than r_i. It requires vc_0=0, vc_end=1
Subtractive volume density: v_i is the volume fraction of particles whose radius is between r_i-1 and r_i. It requires v_0=0, sum(v_i)=1
Sieve data: s_i is the volume fraction of particles whose radius is between r_i and r_i+1. It requires sum(s_i)=1. Property: s_i = v_i-1
|
static |
References convertCumulativeToSubtractive(), convertSubtractiveNumberToVolume(), and convertSubtractiveToCumulative().
Referenced by cutoffAndSqueezeCumulativeNumber(), cutoffCumulativeNumber(), and getQuantile().
|
static |
Referenced by convertCumulativeNumberToVolume(), convertCumulativeVolumeToNumber(), and getVolumetricMean().
|
static |
References convertCumulativeToSubtractive(), convertSubtractiveToCumulative(), and convertSubtractiveVolumeToNumber().
Referenced by cutoffAndSqueezeCumulativeNumber(), cutoffCumulativeNumber(), and getCumulativeNumberFromVolume().
|
static |
References logger, probability, radius, and mathsFunc::square().
Referenced by convertCumulativeNumberToVolume().
|
static |
References logger.
Referenced by convertCumulativeNumberToVolume(), and convertCumulativeVolumeToNumber().
|
static |
References logger, probability, radius, and mathsFunc::square().
Referenced by convertCumulativeVolumeToNumber().
|
static |
References constants::i, logger, probability, and radius.
|
inlinestatic |
References convertCumulativeNumberToVolume(), convertCumulativeVolumeToNumber(), cutoffCumulativeNumber(), and getD50().
|
inlinestatic |
References convertCumulativeNumberToVolume(), convertCumulativeVolumeToNumber(), and getQuantile().
Referenced by cutoffAndSqueezeCumulativeNumber().
|
inlinestatic |
References convertCumulativeVolumeToNumber().
|
inlinestatic |
References getQuantile().
|
inlinestatic |
References getQuantile().
|
inlinestatic |
References getQuantile().
|
inlinestatic |
References getQuantile().
Referenced by cutoffAndSqueezeCumulativeNumber().
|
inlinestatic |
References getQuantile().
|
static |
References convertCumulativeNumberToVolume(), and logger.
Referenced by cutoffCumulativeNumber(), getD0(), getD10(), getD100(), getD50(), and getD90().
|
static |
References convertCumulativeToSubtractive(), mathsFunc::cubic(), and radius.
|
static |
References constants::i, and n.
required to use std::lower_bound for finding when the probability is higher than a certain value std::vector<PSDContinuous> psd; double probability; std::lower_bound(psd.begin(),psd.end(),probability);
probability |
References probability.
|
static |
|
static |
References INFO, logger, probability, and radius.
|
friend |
Writes to output stream.
|
friend |
Reads from input stream.
double PSDContinuous::probability |
double PSDContinuous::radius |