Empirical
Public Member Functions | Protected Attributes | List of all members
D3::QuantizeScale Class Reference

#include <scales.h>

Inheritance diagram for D3::QuantizeScale:
D3::Scale D3::D3_Base D3::OrdinalScale D3::QuantileScale D3::ThresholdScale

Public Member Functions

 QuantizeScale ()
 
 QuantizeScale (bool derived)
 
template<typename T >
double InvertExtent (T y)
 
template<typename T , size_t SIZE>
ScaleSetRange (emp::array< T, SIZE > values)
 
ScaleSetRange (double min, double max)
 
template<typename T , size_t SIZE>
ScaleSetDomain (emp::array< T, SIZE > values)
 
ScaleSetDomain (double min, double max)
 
Scale Copy ()
 Make a copy of this scale. More...
 
double ApplyScale (double input)
 Calculate the ouput for [input], based on the scale's scaling function. More...
 
int ApplyScale (int input)
 
int GetID () const
 
void Log () const
 

Protected Attributes

int id
 

Constructor & Destructor Documentation

D3::QuantizeScale::QuantizeScale ( )
inline
D3::QuantizeScale::QuantizeScale ( bool  derived)
inline

Member Function Documentation

double D3::Scale::ApplyScale ( double  input)
inlineinherited

Calculate the ouput for [input], based on the scale's scaling function.

int D3::Scale::ApplyScale ( int  input)
inlineinherited
Scale D3::Scale::Copy ( )
inlineinherited

Make a copy of this scale.

int D3::D3_Base::GetID ( ) const
inlineinherited
template<typename T >
double D3::QuantizeScale::InvertExtent ( y)
inline
void D3::D3_Base::Log ( ) const
inlineinherited
template<typename T , size_t SIZE>
Scale& D3::Scale::SetDomain ( emp::array< T, SIZE >  values)
inlineinherited

Set the input values corresponding to values in the range. Array should contain same number of elements as the one used to set the range.

Scale& D3::Scale::SetDomain ( double  min,
double  max 
)
inlineinherited
template<typename T , size_t SIZE>
Scale& D3::Scale::SetRange ( emp::array< T, SIZE >  values)
inlineinherited

Set the output values corresponding to values in the domain. Output for values in between will be interpolated with a function determined by the type of the scale. Array should contain same number of elements as the one used to set the domain.

Scale& D3::Scale::SetRange ( double  min,
double  max 
)
inlineinherited

Member Data Documentation

int D3::D3_Base::id
protectedinherited

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