statistics::Mold Class Reference

Currently not in use
Class to serve as a mold to multiple stats.
This would help to maintain coherence and to ease the understanding of each of the stats.
As the number of stats grows, this standarization will become more valuable.
More...

#include <Mold.h>

Public Member Functions

 Mold (Alignment *parentAlignment, Mold *mold)
 
 Mold (Alignment *parentAlignment)
 
 ~Mold ()
 
virtual bool calculate ()
 
virtual bool applyWindow (int halfW)
 
virtual bool isDefinedWindow ()
 
virtual float * getVector ()
 
virtual void printByColumn (bool calculateRelative=false)
 
virtual void printAccumulative (bool calculateRelative=false)
 

Public Attributes

Alignmentalig
 
int residues = -1
 
int sequences = -1
 
int halfWindowApplied = -1
 
float * values = nullptr
 
float * valuesWindow = nullptr
 
int * refCounter = nullptr
 

Static Public Attributes

static const std::string statName = "Gaps"
 

Detailed Description

Currently not in use
Class to serve as a mold to multiple stats.
This would help to maintain coherence and to ease the understanding of each of the stats.
As the number of stats grows, this standarization will become more valuable.

Definition at line 46 of file Mold.h.

Constructor & Destructor Documentation

◆ Mold() [1/2]

statistics::Mold::Mold ( Alignment parentAlignment,
Mold mold 
)

Definition at line 40 of file Mold.cpp.

References alig, and refCounter.

◆ Mold() [2/2]

statistics::Mold::Mold ( Alignment parentAlignment)
explicit

Definition at line 46 of file Mold.cpp.

References alig, and refCounter.

◆ ~Mold()

statistics::Mold::~Mold ( )

Definition at line 51 of file Mold.cpp.

References alig, refCounter, values, and valuesWindow.

Member Function Documentation

◆ applyWindow()

bool statistics::Mold::applyWindow ( int  halfW)
virtual

Definition at line 60 of file Mold.cpp.

References calculate(), debug, halfWindowApplied, reporting::reportManager::report(), residues, values, valuesWindow, and WindowTooBig.

+ Here is the call graph for this function:

◆ calculate()

virtual bool statistics::Mold::calculate ( )
inlinevirtual

Definition at line 72 of file Mold.h.

Referenced by applyWindow().

+ Here is the caller graph for this function:

◆ getVector()

float * statistics::Mold::getVector ( )
virtual

Definition at line 165 of file Mold.cpp.

References values, and valuesWindow.

Referenced by printAccumulative(), and printByColumn().

+ Here is the caller graph for this function:

◆ isDefinedWindow()

bool statistics::Mold::isDefinedWindow ( )
virtual

Definition at line 161 of file Mold.cpp.

References valuesWindow.

◆ printAccumulative()

void statistics::Mold::printAccumulative ( bool  calculateRelative = false)
virtual

Definition at line 222 of file Mold.cpp.

References alig, utils::copyVect(), Alignment::filename, getVector(), Alignment::originalNumberOfResidues, utils::quicksort(), and statName.

+ Here is the call graph for this function:

◆ printByColumn()

void statistics::Mold::printByColumn ( bool  calculateRelative = false)
virtual

Definition at line 171 of file Mold.cpp.

References alig, Alignment::filename, getVector(), Alignment::originalNumberOfResidues, and statName.

+ Here is the call graph for this function:

Member Data Documentation

◆ alig

Alignment* statistics::Mold::alig

Definition at line 49 of file Mold.h.

Referenced by Mold(), printAccumulative(), printByColumn(), and ~Mold().

◆ halfWindowApplied

int statistics::Mold::halfWindowApplied = -1

Definition at line 54 of file Mold.h.

Referenced by applyWindow().

◆ refCounter

int* statistics::Mold::refCounter = nullptr

Definition at line 60 of file Mold.h.

Referenced by Mold(), and ~Mold().

◆ residues

int statistics::Mold::residues = -1

Definition at line 52 of file Mold.h.

Referenced by applyWindow().

◆ sequences

int statistics::Mold::sequences = -1

Definition at line 53 of file Mold.h.

◆ statName

const std::string statistics::Mold::statName = "Gaps"
static

Definition at line 62 of file Mold.h.

Referenced by printAccumulative(), and printByColumn().

◆ values

float* statistics::Mold::values = nullptr

Definition at line 57 of file Mold.h.

Referenced by applyWindow(), getVector(), and ~Mold().

◆ valuesWindow

float* statistics::Mold::valuesWindow = nullptr

Definition at line 58 of file Mold.h.

Referenced by applyWindow(), getVector(), isDefinedWindow(), and ~Mold().


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