![]() |
|
#include "Math/PSD.h"
Functions | |
std::string | getPSDTypeName (PSD::TYPE psdType) |
bool | isEqual (const std::vector< DistributionElements > &l, const std::vector< DistributionElements > &r) |
void | testPSD (PSD::TYPE psdType) |
Sets a PSD by vector with a given type and gets the PSD vector back by the same type to confirm it's the same. More... | |
void | runTest () |
int | main () |
std::string getPSDTypeName | ( | PSD::TYPE | psdType | ) |
References PSD::CUMULATIVE_AREA_DISTRIBUTION, PSD::CUMULATIVE_LENGTH_DISTRIBUTION, PSD::CUMULATIVE_NUMBER_DISTRIBUTION, PSD::CUMULATIVE_VOLUME_DISTRIBUTION, ERROR, logger, PSD::PROBABILITYDENSITY_AREA_DISTRIBUTION, PSD::PROBABILITYDENSITY_LENGTH_DISTRIBUTION, PSD::PROBABILITYDENSITY_NUMBER_DISTRIBUTION, and PSD::PROBABILITYDENSITY_VOLUME_DISTRIBUTION.
Referenced by testPSD().
bool isEqual | ( | const std::vector< DistributionElements > & | l, |
const std::vector< DistributionElements > & | r | ||
) |
References boost::multiprecision::fabs(), i, and UniformPSDSelfTest::r.
Referenced by mathsFunc::isEqual(), main(), and testPSD().
int main | ( | ) |
void runTest | ( | ) |
References PSD::CUMULATIVE_AREA_DISTRIBUTION, PSD::CUMULATIVE_LENGTH_DISTRIBUTION, PSD::CUMULATIVE_NUMBER_DISTRIBUTION, PSD::CUMULATIVE_VOLUME_DISTRIBUTION, PSD::PROBABILITYDENSITY_AREA_DISTRIBUTION, PSD::PROBABILITYDENSITY_LENGTH_DISTRIBUTION, PSD::PROBABILITYDENSITY_NUMBER_DISTRIBUTION, PSD::PROBABILITYDENSITY_VOLUME_DISTRIBUTION, and testPSD().
Referenced by main().
void testPSD | ( | PSD::TYPE | psdType | ) |
Sets a PSD by vector with a given type and gets the PSD vector back by the same type to confirm it's the same.
The PSD class internally converts any PSD type to CUMULATIVE_NUMBER_DISTRIBUTION. It is also possible to get the PSD vector by any type, where internally it is converted back from CUMULATIVE_NUMBER_DISTRIBUTION. Doing this for the same type should of course give the same PSD vector back, provided the PSD vector was perfect to start with, so that internal validation didn't alter it in any way.
psdType | The PSD type the test. |
References PSD::CUMULATIVE_AREA_DISTRIBUTION, PSD::CUMULATIVE_LENGTH_DISTRIBUTION, PSD::CUMULATIVE_NUMBER_DISTRIBUTION, PSD::CUMULATIVE_VOLUME_DISTRIBUTION, ERROR, PSD::getParticleSizeDistributionByType(), getPSDTypeName(), isEqual(), logger, PSD::PROBABILITYDENSITY_AREA_DISTRIBUTION, PSD::PROBABILITYDENSITY_LENGTH_DISTRIBUTION, PSD::PROBABILITYDENSITY_NUMBER_DISTRIBUTION, PSD::PROBABILITYDENSITY_VOLUME_DISTRIBUTION, and PSD::setPSDFromVector().
Referenced by runTest().