1.5.0
CCC
 
AnamHermite Class Reference

#include <AnamHermite.hpp>

Inheritance diagram for AnamHermite:
AnamContinuous AAnam AStringable ASerializable ICloneable

Public Member Functions

 AnamHermite (int nbpoly=3, bool flagBound=true, double rCoef=1.)
 
 AnamHermite (const AnamHermite &m)
 
AnamHermiteoperator= (const AnamHermite &m)
 
virtual ~AnamHermite ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 ICloneable Interface. More...
 
const EAnam & getType () const override
 Interface AAnam. More...
 
bool hasFactor () const override
 
int getNFactor () const override
 
VectorDouble z2factor (double z, const VectorInt &ifacs) const override
 
double computeVariance (double chh) const override
 
int updatePointToBlock (double r_coef) override
 
bool allowChangeSupport () const override
 
bool isChangeSupportDefined () const override
 
int getNClass () const override
 
int fitFromArray (const VectorDouble &tab, const VectorDouble &wt=VectorDouble()) override
 
double rawToTransformValue (double z) const override
 AnamContinuous Interface. More...
 
double transformToRawValue (double y) const override
 
void calculateMeanAndVariance () override
 Interface for AnamContinuous. More...
 
void reset (double pymin, double pzmin, double pymax, double pzmax, double aymin, double azmin, double aymax, double azmax, double r, const VectorDouble &psi_hn)
 
int getNbPoly () const
 
VectorDouble getPsiHns () const
 
double getPsiHn (int ih) const
 
double getRCoef () const
 
bool getFlagBound () const
 
void setPsiHns (const VectorDouble &psi_hn)
 
void setFlagBound (bool flagBound)
 
void setPsiHn (int i, double psi_hn)
 
void setRCoef (double r_coef)
 
int factor2Selectivity (Db *db, Selectivity *selectivity, const VectorInt &cols_est, const VectorInt &cols_std, int iptr0)
 
double evalSupportCoefficient (int option, Model *model, const VectorDouble &dxs, const VectorInt &ndisc, const VectorDouble &angles=VectorDouble(), bool verbose=true)
 
VectorDouble cumulateVarianceRatio (double chh) const
 
- Public Member Functions inherited from AnamContinuous
 AnamContinuous ()
 
 AnamContinuous (const AnamContinuous &m)
 
AnamContinuousoperator= (const AnamContinuous &m)
 
virtual ~AnamContinuous ()
 
bool hasGaussian () const override
 AAnam interface. More...
 
virtual double getVariance () const override
 
void setABounds (double azmin=TEST, double azmax=TEST, double aymin=TEST, double aymax=TEST)
 
void setPBounds (double pzmin=TEST, double pzmax=TEST, double pymin=TEST, double pymax=TEST)
 
VectorDouble rawToGaussianVector (const VectorDouble &z) const
 
VectorDouble gaussianToRawVector (const VectorDouble &y) const
 
AnamContinuousFit sample (int ndisc=100, double aymin=-10, double aymax=+10)
 
double getMean () const
 
double getAymax () const
 
double getAymin () const
 
double getAzmax () const
 
double getAzmin () const
 
double getPymax () const
 
double getPymin () const
 
double getPzmax () const
 
double getPzmin () const
 
void setAzmin (double azmin)
 
void setAzmax (double azmax)
 
void setAymin (double aymin)
 
void setAymax (double aymax)
 
void setPzmin (double pzmin)
 
void setPzmax (double pzmax)
 
void setPymin (double pymin)
 
void setPymax (double pymax)
 
void setMean (double mean)
 
void setVariance (double variance)
 
- Public Member Functions inherited from AAnam
 AAnam ()
 
 AAnam (const AAnam &m)
 
AAnamoperator= (const AAnam &m)
 
virtual ~AAnam ()
 
double invertVariance (double cvv) const
 
VectorDouble rawToTransformVec (const VectorDouble &z) const
 
VectorDouble transformToRawVec (const VectorDouble &y) const
 
int fitFromLocator (Db *db, const ELoc &locatorType=ELoc::fromKey("Z"))
 
int fit (Db *db, const String &name)
 
int rawToGaussianByLocator (Db *db, const NamingConvention &namconv=NamingConvention("Y"))
 
int rawToGaussian (Db *db, const String &name, const NamingConvention &namconv=NamingConvention("Y"))
 
int normalScore (Db *db, const String &name, const NamingConvention &namconv=NamingConvention("Gaussian"))
 
int gaussianToRawByLocator (Db *db, const NamingConvention &namconv=NamingConvention("Z"))
 
int gaussianToRaw (Db *db, const String &name, const NamingConvention &namconv=NamingConvention("Z"))
 
int rawToFactorByRanks (Db *db, const VectorInt &ifacs, const NamingConvention &namconv=NamingConvention("Factor"))
 
int rawToFactor (Db *db, int nfactor, const NamingConvention &namconv=NamingConvention("Factor"))
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 
- Public Member Functions inherited from ASerializable
 ASerializable ()
 
 ASerializable (const ASerializable &r)
 
ASerializableoperator= (const ASerializable &r)
 
virtual ~ASerializable ()
 
bool deserialize (std::istream &is, bool verbose=true)
 
bool serialize (std::ostream &os, bool verbose=true) const
 
bool dumpToNF (const String &neutralFilename, bool verbose=false) const
 
- Public Member Functions inherited from ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 

Static Public Member Functions

static AnamHermitecreateFromNF (const String &neutralFilename, bool verbose=true)
 ASerializable Interface. More...
 
static AnamHermitecreate (int nbpoly=0, bool flagBound=true, double rCoef=1.)
 
- Static Public Member Functions inherited from ASerializable
static String buildFileName (int status, const String &filename, bool ensureDirExist=false)
 
static String getHomeDirectory (const String &sub="")
 
static String getWorkingDirectory ()
 
static String getTestData (const String &subdir, const String &filename)
 
static String getFileIdentity (const String &filename, bool verbose=false)
 
static void setContainerName (bool useDefault, const String &containerName="", bool verbose=false)
 
static void unsetContainerName ()
 
static void setPrefixName (const String &prefixName)
 
static void unsetPrefixName ()
 
static const StringgetContainerName ()
 
static const StringgetPrefixName ()
 
static bool createDirectory (const String &dir)
 
static String getExecDirectory ()
 
static String getDirectory (const String &path)
 

Friends

class Selectivity
 

Constructor & Destructor Documentation

◆ AnamHermite() [1/2]

AnamHermite::AnamHermite ( int  nbpoly = 3,
bool  flagBound = true,
double  rCoef = 1. 
)

◆ AnamHermite() [2/2]

AnamHermite::AnamHermite ( const AnamHermite m)

◆ ~AnamHermite()

AnamHermite::~AnamHermite ( )
virtual

Member Function Documentation

◆ allowChangeSupport()

bool AnamHermite::allowChangeSupport ( ) const
inlineoverridevirtual

Reimplemented from AAnam.

◆ calculateMeanAndVariance()

void AnamHermite::calculateMeanAndVariance ( )
overridevirtual

Interface for AnamContinuous.

Reimplemented from AnamContinuous.

◆ computeVariance()

double AnamHermite::computeVariance ( double  chh) const
overridevirtual

Compute the Gaussian covariance from Raw covariance: Sum_n psi_n^2 C^n

Parameters
chh
Returns

Reimplemented from AAnam.

◆ create()

AnamHermite * AnamHermite::create ( int  nbpoly = 0,
bool  flagBound = true,
double  rCoef = 1. 
)
static

◆ createFromNF()

AnamHermite * AnamHermite::createFromNF ( const String neutralFilename,
bool  verbose = true 
)
static

ASerializable Interface.

◆ cumulateVarianceRatio()

VectorDouble AnamHermite::cumulateVarianceRatio ( double  chh) const

◆ evalSupportCoefficient()

double AnamHermite::evalSupportCoefficient ( int  option,
Model model,
const VectorDouble dxs,
const VectorInt ndisc,
const VectorDouble angles = VectorDouble(),
bool  verbose = true 
)

◆ factor2Selectivity()

int AnamHermite::factor2Selectivity ( Db db,
Selectivity selectivity,
const VectorInt cols_est,
const VectorInt cols_std,
int  iptr0 
)

Calculate Experimental Grade-Tonnage curves from factors Case of Hermite Anamorphosis

Returns
Error return code
Parameters
[in]dbDb structure containing the factors (Z-locators)
[in]selectivitySelectivity structure
[in]cols_estArray of UIDs for factor estimation
[in]cols_stdArray of UIDs for factor St. Dev.
[in]iptr0Rank for storing the results

◆ fitFromArray()

int AnamHermite::fitFromArray ( const VectorDouble tab,
const VectorDouble wt = VectorDouble() 
)
overridevirtual

Reimplemented from AAnam.

◆ getFlagBound()

bool AnamHermite::getFlagBound ( ) const
inline

◆ getNbPoly()

int AnamHermite::getNbPoly ( ) const
inline

◆ getNClass()

int AnamHermite::getNClass ( ) const
inlineoverridevirtual

Reimplemented from AAnam.

◆ getNFactor()

int AnamHermite::getNFactor ( ) const
inlineoverridevirtual

Reimplemented from AAnam.

◆ getPsiHn()

double AnamHermite::getPsiHn ( int  ih) const

◆ getPsiHns()

VectorDouble AnamHermite::getPsiHns ( ) const

◆ getRCoef()

double AnamHermite::getRCoef ( ) const
inline

◆ getType()

const EAnam& AnamHermite::getType ( ) const
inlineoverridevirtual

Interface AAnam.

Implements AAnam.

◆ hasFactor()

bool AnamHermite::hasFactor ( ) const
inlineoverridevirtual

Reimplemented from AAnam.

◆ isChangeSupportDefined()

bool AnamHermite::isChangeSupportDefined ( ) const
inlineoverridevirtual

Implements AAnam.

◆ operator=()

AnamHermite & AnamHermite::operator= ( const AnamHermite m)

◆ rawToTransformValue()

double AnamHermite::rawToTransformValue ( double  z) const
overridevirtual

AnamContinuous Interface.

Reimplemented from AAnam.

◆ reset()

void AnamHermite::reset ( double  pymin,
double  pzmin,
double  pymax,
double  pzmax,
double  aymin,
double  azmin,
double  aymax,
double  azmax,
double  r,
const VectorDouble psi_hn 
)

◆ setFlagBound()

void AnamHermite::setFlagBound ( bool  flagBound)
inline

◆ setPsiHn()

void AnamHermite::setPsiHn ( int  i,
double  psi_hn 
)

◆ setPsiHns()

void AnamHermite::setPsiHns ( const VectorDouble psi_hn)
inline

◆ setRCoef()

void AnamHermite::setRCoef ( double  r_coef)

◆ toString()

String AnamHermite::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

ICloneable Interface.

AStringable Interface

Reimplemented from AnamContinuous.

◆ transformToRawValue()

double AnamHermite::transformToRawValue ( double  y) const
overridevirtual

Reimplemented from AAnam.

◆ updatePointToBlock()

int AnamHermite::updatePointToBlock ( double  r_coef)
overridevirtual

Reimplemented from AAnam.

◆ z2factor()

VectorDouble AnamHermite::z2factor ( double  z,
const VectorInt ifacs 
) const
overridevirtual

Reimplemented from AAnam.

Friends And Related Function Documentation

◆ Selectivity

friend class Selectivity
friend

The documentation for this class was generated from the following files: