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>
Public Member Functions | |
void | clear () |
Statistic & | operator= (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 ![]() ![]() ![]() ![]() | |
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 | |
long64 * | values |
values[0] store experiment trial count and values[ i ] stores trial portion with at least i vanished first focal values | |
get | |
| |
long64 & | getStatisticEntryRef (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 () |
Definition at line 35 of file Statistik.h.
nCenterFocus::Statistic< safe >::Statistic | ( | int | maxExpectedNumOfVanishedFocalValuesToLog, | |
int | startAt = 0 | |||
) | [inline] |
startAt | addStatistic() beginnt Zählung der Strudelgrößen erst bei der Strudelgröße mit der Nummer 'startAt' ist ![]() ![]() ![]() | |
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().
nCenterFocus::Statistic< safe >::Statistic | ( | const Statistic< safe > & | st | ) | [inline] |
Definition at line 42 of file Statistik.cpp.
References nCenterFocus::Statistic< safe >::arrayLength, and nCenterFocus::Statistic< safe >::values.
nCenterFocus::Statistic< safe >::~Statistic | ( | ) | [inline, virtual] |
Definition at line 229 of file Statistik.cpp.
References nCenterFocus::Statistic< safe >::values.
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.
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.
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.
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.
void nCenterFocus::Statistic< safe >::clear | ( | ) | [inline] |
Definition at line 87 of file Statistik.cpp.
References nCenterFocus::Statistic< safe >::arrayLength, and nCenterFocus::Statistic< safe >::values.
Referenced by nCenterFocus::Statistic< safe >::Statistic().
void nCenterFocus::Statistic< safe >::correctHamiltonComponentStatistic | ( | int | focalValueNum, | |
int | hamiltonianPointCount | |||
) | [inline] |
Definition at line 190 of file Statistik.cpp.
References nCenterFocus::Statistic< safe >::arrayLength, nCenterFocus::Statistic< safe >::getMaxLoggedSuccessiveVanishedFocalValues(), and nCenterFocus::Statistic< safe >::getStatisticEntryRef().
void nCenterFocus::Statistic< safe >::correctNonHamiltonComponentStatistic | ( | int | focalValueNum, | |
int | vanishedFocalValuesToSubtract | |||
) | [inline] |
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().
void nCenterFocus::Statistic< safe >::correctSecondFocalValueStatistic | ( | int | vanishedTrials | ) | [inline] |
Korrektur der Statistik bei Verwendung der Formel23.
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.
int nCenterFocus::Statistic< safe >::getMaxLoggedSuccessiveVanishedFocalValues | ( | ) | [inline] |
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().
long64 nCenterFocus::Statistic< safe >::getStatisticEntry | ( | int | index | ) | const [inline, private] |
Definition at line 106 of file Statistik.cpp.
References nCenterFocus::Statistic< safe >::testbounds(), and nCenterFocus::Statistic< safe >::values.
Referenced by nCenterFocus::Statistic< safe >::getTrialCount(), and nCenterFocus::Statistic< safe >::getTrialCountWithGivenNumOfFirstSuccessiveVanishedFocalValues().
long64 & nCenterFocus::Statistic< safe >::getStatisticEntryRef | ( | int | index | ) | [inline, private] |
Definition at line 97 of file Statistik.cpp.
References nCenterFocus::Statistic< safe >::testbounds(), and nCenterFocus::Statistic< safe >::values.
Referenced by nCenterFocus::Statistic< safe >::addFormula1And23Try(), nCenterFocus::Statistic< safe >::addFormula1And2Try(), nCenterFocus::Statistic< safe >::addFormula1Try(), nCenterFocus::Statistic< safe >::addStatistic(), nCenterFocus::Statistic< safe >::correctHamiltonComponentStatistic(), nCenterFocus::Statistic< safe >::correctNonHamiltonComponentStatistic(), and nCenterFocus::Statistic< safe >::correctSecondFocalValueStatistic().
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().
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().
Statistic< safe > & nCenterFocus::Statistic< safe >::operator= | ( | const Statistic< safe > & | st | ) | [inline] |
Definition at line 64 of file Statistik.cpp.
References nCenterFocus::Statistic< safe >::arrayLength, nCenterFocus::Statistic< safe >::startAt_m, and nCenterFocus::Statistic< safe >::values.
void nCenterFocus::Statistic< safe >::print | ( | ostream & | o | ) | [inline] |
Definition at line 213 of file Statistik.cpp.
References nCenterFocus::Statistic< safe >::getMaxLoggedSuccessiveVanishedFocalValues(), nCenterFocus::Statistic< safe >::getTrialCount(), and nCenterFocus::Statistic< safe >::getTrialCountWithGivenNumOfFirstSuccessiveVanishedFocalValues().
void nCenterFocus::Statistic< safe >::testbounds | ( | int | maxbound | ) | const [inline, private] |
Definition at line 56 of file Statistik.cpp.
Referenced by nCenterFocus::Statistic< safe >::getStatisticEntry(), and nCenterFocus::Statistic< safe >::getStatisticEntryRef().
int nCenterFocus::Statistic< safe >::arrayLength [private] |
Definition at line 40 of file Statistik.h.
Referenced by nCenterFocus::Statistic< safe >::clear(), nCenterFocus::Statistic< safe >::correctHamiltonComponentStatistic(), nCenterFocus::Statistic< safe >::getMaxLoggedSuccessiveVanishedFocalValues(), nCenterFocus::Statistic< safe >::operator=(), and nCenterFocus::Statistic< safe >::Statistic().
int nCenterFocus::Statistic< safe >::startAt_m [private] |
Definition at line 38 of file Statistik.h.
Referenced by nCenterFocus::Statistic< safe >::addFormula1And23Try(), nCenterFocus::Statistic< safe >::addFormula1And2Try(), nCenterFocus::Statistic< safe >::addFormula1Try(), nCenterFocus::Statistic< safe >::addStatistic(), nCenterFocus::Statistic< safe >::correctSecondFocalValueStatistic(), and nCenterFocus::Statistic< safe >::operator=().
long64* nCenterFocus::Statistic< safe >::values [private] |
Definition at line 46 of file Statistik.h.
Referenced by nCenterFocus::Statistic< safe >::clear(), nCenterFocus::Statistic< safe >::getStatisticEntry(), nCenterFocus::Statistic< safe >::getStatisticEntryRef(), nCenterFocus::Statistic< safe >::operator=(), nCenterFocus::Statistic< safe >::Statistic(), and nCenterFocus::Statistic< safe >::~Statistic().