Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes

Attrib::Scaling Class Reference

Inheritance diagram for Attrib::Scaling:
Attrib::Provider

List of all members.

Classes

struct  Trend

Public Member Functions

 Scaling (Desc &)

Static Public Member Functions

static void initClass ()
static const char * attribName ()
static const char * scalingTypeStr ()
static const char * powervalStr ()
static const char * gateStr ()
static const char * factorStr ()
static const char * widthStr ()
static const char * mutefractionStr ()
static const char * statsTypeStr ()
static const char * sqrangeStr ()
static const char * squntouchedStr ()
static const char * statsTypeNamesStr (int type)
static const char * scalingTypeNamesStr (int type)

Protected Member Functions

 ~Scaling ()
bool allowParallelComputation () const
bool getInputOutput (int input, TypeSet< int > &res) const
bool getInputData (const BinID &, int zintv)
bool computeData (const DataHolder &, const BinID &relpos, int z0, int nrsamples, int threadid) const
void getSampleGates (const TypeSet< Interval< float > > &oldtgs, TypeSet< Interval< int > > &newsampgates, int z0, int nrsamples) const
void scaleSqueeze (const DataHolder &, int, int) const
void scaleZN (const DataHolder &, int, int) const
void scaleAGC (const DataHolder &, int z0, int nrsamples) const
void getScaleFactorsFromStats (const TypeSet< Interval< int > > &gates, TypeSet< float > &factors, int) const
void getTrendsFromStats (const TypeSet< Interval< int > > &gates, int)
const Interval< int > * desZSampMargin (int inp, int) const

Static Protected Member Functions

static ProvidercreateInstance (Desc &)
static void updateDesc (Desc &)

Protected Attributes

int scalingtype_
int statstype_
float powerval_
TypeSet< Interval< float > > gates_
TypeSet< float > factors_
const DataHolderinputdata_
int dataidx_
Interval< int > desgate_
Interval< float > sqrg_
Interval< float > squrg_
float width_
Interval< float > window_
float mutefraction_
TypeSet< Trendtrends_

Constructor & Destructor Documentation

Attrib::Scaling::Scaling ( Desc  ) 
Attrib::Scaling::~Scaling (  )  [inline, protected]

Member Function Documentation

bool Attrib::Scaling::allowParallelComputation (  )  const [protected, virtual]

Reimplemented from Attrib::Provider.

static const char* Attrib::Scaling::attribName (  )  [inline, static]
bool Attrib::Scaling::computeData ( const DataHolder ,
const BinID relpos,
int  z0,
int  nrsamples,
int  threadid 
) const [protected, virtual]

Reimplemented from Attrib::Provider.

static Provider* Attrib::Scaling::createInstance ( Desc  )  [static, protected]
const Interval<int>* Attrib::Scaling::desZSampMargin ( int  inp,
int   
) const [protected, virtual]

Reimplemented from Attrib::Provider.

static const char* Attrib::Scaling::factorStr (  )  [inline, static]
static const char* Attrib::Scaling::gateStr (  )  [inline, static]
bool Attrib::Scaling::getInputData ( const BinID ,
int  zintv 
) [protected, virtual]

Reimplemented from Attrib::Provider.

bool Attrib::Scaling::getInputOutput ( int  input,
TypeSet< int > &  res 
) const [protected, virtual]

Reimplemented from Attrib::Provider.

void Attrib::Scaling::getSampleGates ( const TypeSet< Interval< float > > &  oldtgs,
TypeSet< Interval< int > > &  newsampgates,
int  z0,
int  nrsamples 
) const [protected]
void Attrib::Scaling::getScaleFactorsFromStats ( const TypeSet< Interval< int > > &  gates,
TypeSet< float > &  factors,
int   
) const [protected]
void Attrib::Scaling::getTrendsFromStats ( const TypeSet< Interval< int > > &  gates,
int   
) [protected]
static void Attrib::Scaling::initClass (  )  [static]
static const char* Attrib::Scaling::mutefractionStr (  )  [inline, static]
static const char* Attrib::Scaling::powervalStr (  )  [inline, static]
void Attrib::Scaling::scaleAGC ( const DataHolder ,
int  z0,
int  nrsamples 
) const [protected]
void Attrib::Scaling::scaleSqueeze ( const DataHolder ,
int  ,
int   
) const [protected]
void Attrib::Scaling::scaleZN ( const DataHolder ,
int  ,
int   
) const [protected]
static const char* Attrib::Scaling::scalingTypeNamesStr ( int  type  )  [static]
static const char* Attrib::Scaling::scalingTypeStr (  )  [inline, static]
static const char* Attrib::Scaling::sqrangeStr (  )  [inline, static]
static const char* Attrib::Scaling::squntouchedStr (  )  [inline, static]
static const char* Attrib::Scaling::statsTypeNamesStr ( int  type  )  [static]
static const char* Attrib::Scaling::statsTypeStr (  )  [inline, static]
static void Attrib::Scaling::updateDesc ( Desc  )  [static, protected]
static const char* Attrib::Scaling::widthStr (  )  [inline, static]

Member Data Documentation

int Attrib::Scaling::dataidx_ [protected]
TypeSet<float> Attrib::Scaling::factors_ [protected]
TypeSet< Interval<float> > Attrib::Scaling::gates_ [protected]
float Attrib::Scaling::mutefraction_ [protected]
float Attrib::Scaling::powerval_ [protected]
Interval<float> Attrib::Scaling::sqrg_ [protected]
Interval<float> Attrib::Scaling::squrg_ [protected]
int Attrib::Scaling::statstype_ [protected]
float Attrib::Scaling::width_ [protected]
Interval<float> Attrib::Scaling::window_ [protected]