nCenterFocus::Statistic< safe > Class Template Reference
[Focal Values Statistics]

Designed to store centerfocus experiment trial counts and trial count statistics about the number of first at least vanished focal values. More...

#include <Statistik.h>

List of all members.

Public Member Functions

void clear ()
Statisticoperator= (const Statistic &)
constructors and destructors

 Statistic (int maxExpectedNumOfVanishedFocalValuesToLog, int startAt=0)
 Statistic (const Statistic &)
virtual ~Statistic ()
add trial

void addStatistic (int numberOfFirstSuccessiveVanishedFocalValues)
 update Statistic for all focal values $ s_i $ ,$ i \geq startAt $(see constructor). Statistics for focal values $ s_j $,$ j \leq startAt $ must be corrected
statistic correction

void addFormula1Try (int characteristic)
 values[0]+=characteristic; call this function in each trial where only formula 1 was used.
void addFormula1And2Try (int characteristic)
 values[0] += characteristic^2; values[1]+=characteristic ; correct statistic for an formula2 trial . Call this function in each trial where only formula1 and formula2 was used.
void addFormula1And23Try (int characteristic)
 values[0]+=characteristic^3; values[1]+=characteristic^2 ; correct statistic for an formula23-trial . Call this function in each trial where formula 23 was used.
void correctSecondFocalValueStatistic (int vanishedTrials)
 values[2] +=vanishedTrials; - correct vanished second focal values in an formula23-trial. call this function with the number of vanished second focal values in a formula23-trial.
void correctHamiltonComponentStatistic (int focalValueNum, int correctedVanishedFocalValuesCount)
void correctNonHamiltonComponentStatistic (int focalValueNum, int vanishedFocalValuesToSubtract)
IO

void print (ostream &o)

Private Member Functions

void testbounds (int maxbound) const

Private Attributes

int startAt_m
 Die Zählung der Strudelgrößen wird erst bei der Strudelgröße mit der Nummer 'startAt' begonnen.
int arrayLength
 size of values
long64values
 values[0] store experiment trial count
and values[ i ] stores trial portion with at least i vanished first focal values

get



long64getStatisticEntryRef (int index)
 return values[index]
long64 getStatisticEntry (int index) const
 return reference to values[index]
long64 getTrialCountWithGivenNumOfFirstSuccessiveVanishedFocalValues (int i)
 get trials where at least first i th focal values vanished
long64 getTrialCount ()
 return virtual number of trials, as if no focal value was parametrized
int getMaxLoggedSuccessiveVanishedFocalValues ()

Detailed Description

template<bool safe = true>
class nCenterFocus::Statistic< safe >

Todo:
Idee: Klasse parametrisieren, ob diese Array-Grenzen überprüfen soll oder nicht.
Todo:
wenn eine der Formeln in Kombination mit einem Filter verwendet wird, ist die Statistik für die ersten entsprechenden Strudelgrößen nicht mehr korrekt.
Note:
wenn eine der Formeln in Kombination mit einem Filter verwendet wird, ist die Statistik für die ersten entsprechenden Strudelgrößen nicht mehr korrekt.

Definition at line 35 of file Statistik.h.


Constructor & Destructor Documentation

template<bool safe>
nCenterFocus::Statistic< safe >::Statistic ( int  maxExpectedNumOfVanishedFocalValuesToLog,
int  startAt = 0 
) [inline]
Precondition:
ist startAt >0, muss die Statistik für alle Strudelgrößen $ s_i $, i<startAt vom Benutzer korrigiert werden.
Parameters:
startAt addStatistic() beginnt Zählung der Strudelgrößen erst bei der Strudelgröße mit der Nummer 'startAt' ist $ startAt >0 $, muss die Statistik für alle Strudelgrößen $ s_i $, $ i<startAt $ vom Benutzer korrigiert werden.
maxExpectedNumOfVanishedFocalValuesToLog maximal expected (and logged) number of vanished focal values.

Definition at line 28 of file Statistik.cpp.

References nCenterFocus::Statistic< safe >::arrayLength, and nCenterFocus::Statistic< safe >::clear().

Here is the call graph for this function:

template<bool safe>
nCenterFocus::Statistic< safe >::Statistic ( const Statistic< safe > &  st  )  [inline]
template<bool safe>
nCenterFocus::Statistic< safe >::~Statistic (  )  [inline, virtual]

Definition at line 229 of file Statistik.cpp.

References nCenterFocus::Statistic< safe >::values.


Member Function Documentation

template<bool safe>
void nCenterFocus::Statistic< safe >::addFormula1And23Try ( int  characteristic  )  [inline]

Definition at line 154 of file Statistik.cpp.

References nCenterFocus::Statistic< safe >::getStatisticEntryRef(), and nCenterFocus::Statistic< safe >::startAt_m.

Here is the call graph for this function:

template<bool safe>
void nCenterFocus::Statistic< safe >::addFormula1And2Try ( int  characteristic  )  [inline]

Definition at line 143 of file Statistik.cpp.

References nCenterFocus::Statistic< safe >::getStatisticEntryRef(), and nCenterFocus::Statistic< safe >::startAt_m.

Here is the call graph for this function:

template<bool safe>
void nCenterFocus::Statistic< safe >::addFormula1Try ( int  characteristic  )  [inline]

Definition at line 134 of file Statistik.cpp.

References nCenterFocus::Statistic< safe >::getStatisticEntryRef(), and nCenterFocus::Statistic< safe >::startAt_m.

Here is the call graph for this function:

template<bool safe>
void nCenterFocus::Statistic< safe >::addStatistic ( int  numberOfFirstSuccessiveVanishedFocalValues  )  [inline]

Definition at line 123 of file Statistik.cpp.

References nCenterFocus::Statistic< safe >::getStatisticEntryRef(), and nCenterFocus::Statistic< safe >::startAt_m.

Here is the call graph for this function:

template<bool safe>
void nCenterFocus::Statistic< safe >::clear (  )  [inline]
template<bool safe>
void nCenterFocus::Statistic< safe >::correctHamiltonComponentStatistic ( int  focalValueNum,
int  hamiltonianPointCount 
) [inline]
template<bool safe>
void nCenterFocus::Statistic< safe >::correctNonHamiltonComponentStatistic ( int  focalValueNum,
int  vanishedFocalValuesToSubtract 
) [inline]
Todo:

nur einmaligen Aufruf erlauben

problem: wenn keine Formel verwendet wird, ist die Statistik ebenfalls falsch.

Definition at line 201 of file Statistik.cpp.

References nCenterFocus::Statistic< safe >::getMaxLoggedSuccessiveVanishedFocalValues(), and nCenterFocus::Statistic< safe >::getStatisticEntryRef().

Here is the call graph for this function:

template<bool safe>
void nCenterFocus::Statistic< safe >::correctSecondFocalValueStatistic ( int  vanishedTrials  )  [inline]

Korrektur der Statistik bei Verwendung der Formel23.

Parameters:
vanishedTrials number of (virtual) vanished second focal values which must be added to Statistic

Definition at line 166 of file Statistik.cpp.

References nCenterFocus::Statistic< safe >::getStatisticEntryRef(), and nCenterFocus::Statistic< safe >::startAt_m.

Here is the call graph for this function:

template<bool safe>
int nCenterFocus::Statistic< safe >::getMaxLoggedSuccessiveVanishedFocalValues (  )  [inline]
Returns:
max which satistfies following condition: statistic for focal values s_j, j>max is not logged.

Definition at line 183 of file Statistik.cpp.

References nCenterFocus::Statistic< safe >::arrayLength.

Referenced by nCenterFocus::Statistic< safe >::correctHamiltonComponentStatistic(), nCenterFocus::Statistic< safe >::correctNonHamiltonComponentStatistic(), and nCenterFocus::Statistic< safe >::print().

template<bool safe>
long64 nCenterFocus::Statistic< safe >::getStatisticEntry ( int  index  )  const [inline, private]
template<bool safe>
long64 & nCenterFocus::Statistic< safe >::getStatisticEntryRef ( int  index  )  [inline, private]
template<bool safe>
long64 nCenterFocus::Statistic< safe >::getTrialCount (  )  [inline]

Definition at line 177 of file Statistik.cpp.

References nCenterFocus::Statistic< safe >::getStatisticEntry().

Referenced by nCenterFocus::Statistic< safe >::print().

Here is the call graph for this function:

template<bool safe>
long64 nCenterFocus::Statistic< safe >::getTrialCountWithGivenNumOfFirstSuccessiveVanishedFocalValues ( int  i  )  [inline]

get number of trials where first num focal values vanished.

Definition at line 117 of file Statistik.cpp.

References nCenterFocus::Statistic< safe >::getStatisticEntry().

Referenced by nCenterFocus::Statistic< safe >::print().

Here is the call graph for this function:

template<bool safe>
Statistic< safe > & nCenterFocus::Statistic< safe >::operator= ( const Statistic< safe > &  st  )  [inline]
template<bool safe>
void nCenterFocus::Statistic< safe >::print ( ostream &  o  )  [inline]
template<bool safe>
void nCenterFocus::Statistic< safe >::testbounds ( int  maxbound  )  const [inline, private]

Member Data Documentation

template<bool safe = true>
int nCenterFocus::Statistic< safe >::arrayLength [private]
template<bool safe = true>
int nCenterFocus::Statistic< safe >::startAt_m [private]
template<bool safe = true>
long64* nCenterFocus::Statistic< safe >::values [private]

The documentation for this class was generated from the following files:
Generated on Tue Nov 23 13:10:53 2010 for centerfocus by  doxygen 1.6.3