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

#include <scales.h>

Inheritance diagram for D3::LinearScale:
D3::IdentityScale D3::Scale D3::D3_Base D3::LogScale D3::PowScale D3::TimeScale

Public Member Functions

 LinearScale ()
 
 LinearScale (bool derived)
 
template<typename T , size_t SIZE>
LinearScaleSetRangeRound (emp::array< T, SIZE > values)
 
LinearScaleSetRangeRound (double min, double max)
 
LinearScaleSetInterpolate (std::string factory)
 
LinearScaleClamp (bool clamp)
 
LinearScaleNice (int count=-1)
 
template<typename T >
double Invert (T y)
 
IdentityScaleSetTicks (int count)
 
IdentityScaleSetTickFormat (int count, std::string format)
 
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::LinearScale::LinearScale ( )
inline
D3::LinearScale::LinearScale ( 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
LinearScale& D3::LinearScale::Clamp ( bool  clamp)
inline
Scale D3::Scale::Copy ( )
inlineinherited

Make a copy of this scale.

int D3::D3_Base::GetID ( ) const
inlineinherited
template<typename T >
double D3::IdentityScale::Invert ( y)
inlineinherited
void D3::D3_Base::Log ( ) const
inlineinherited
LinearScale& D3::LinearScale::Nice ( int  count = -1)
inline
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
LinearScale& D3::LinearScale::SetInterpolate ( std::string  factory)
inline
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
template<typename T , size_t SIZE>
LinearScale& D3::LinearScale::SetRangeRound ( emp::array< T, SIZE >  values)
inline
LinearScale& D3::LinearScale::SetRangeRound ( double  min,
double  max 
)
inline
IdentityScale& D3::IdentityScale::SetTickFormat ( int  count,
std::string  format 
)
inlineinherited
IdentityScale& D3::IdentityScale::SetTicks ( int  count)
inlineinherited

Member Data Documentation

int D3::D3_Base::id
protectedinherited

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