Designed to hold statistics of a single centerfocus experiment, namely distribution of jacobian rank for different numbers of vanished focal values. More...
#include <RangStatistik.h>
Public Member Functions | |
void | clear () |
constructors and destructor | |
BaseRankStatistic (std::string name, int _requestedMinSuccessiveVanishedFocalValues, int _maxFocalValuesToCompute, int _maxRank) | |
see details: RankStatistic() | |
BaseRankStatistic (const BaseRankStatistic &) | |
BaseRankStatistic & | operator= (const BaseRankStatistic &) |
virtual | ~BaseRankStatistic () |
addStatistic | |
void | addRankStatistic (int successiveVanishedFocalValues, int jacobianRank) |
access object properties and statistic | |
int | getSmallesLoggedNumOfVanishedFocalValues () const |
return smallest focal value index for which addRankStatistic() logs rank statistic | |
int | getHighestLoggedNumOfVanishedFocalValues () const |
return greatest focal value index for which addRankStatistic() logs rank statistic | |
int | getHighestLoggedJacobianRank () const |
return major allowed jacobian rank parameter value passed to addRankStatistic() | |
long64 | getOccurenceWithGivenNumOfVanishedFocalValues (int successiveVanishedNum) const |
get number of trials where vanished focal Values is equal(!) to parameter 'successiveVanishedNum' | |
int | getNumOfOccuredJacobianRank (int successiveVanishedNum, int jacobianRank) const |
io | |
void | print (std::ostream &f) const |
prints rank statistic in Macaulay style. - ( name +' = ' + value + ' ; ' ) Value Format: ..{ number of successive vanished focal values, {occurrence count, portion with jacobian rank 0, portion with jacobian rank 1, ..., portion with jacobain rank = maxRank} }, { next number of successive vanished focal values, { ... ... | |
std::string | getValueAsString () const |
Static Public Attributes | |
static const std::string | fullRankStatisticString |
static const std::string | subRankStatisticString |
Private Member Functions | |
BaseRankStatistic () | |
void | init () |
create and initialize jacobianRankCounters_m; initialize exactVanishedFocalValuesStatistic_m. | |
acess to rank statistic data | |
long64 | getJacobianRankCounter (int index) const |
get jacobian rank counter by index | |
long64 & | getJacobianRankCounterRef (int index) |
get jacobian rank counter reference by index | |
int | getRankStatisticIndex (int successiveVanishedNum, int jacobianRank) const |
get exactVanishedFocalValuesStatistic_m- index for given successiveVanishedNum and jacobianRank. | |
safety | |
void | testbounds (int maxbound) const |
Private Attributes | |
data | |
std::string | name_m |
int | maxRank |
max expected jacobian rank to log | |
int | maxFocalValuesToCompute |
max expected number of successive vanished focal values to log | |
int | minSuccessiveZeroFocalValues |
smallest expected number of successive vanished focal values to log | |
long64 * | jacobianRankCounters_m |
statistic data; see details for format description: jacobianRankCounters_m | |
long64 * | exactVanishedFocalValuesStatistic_m |
exactVanishedFocalValuesStatistic_m[i] contains trial count where exactly first i focal values vanished if i>=minSuccessiveZeroFocalValues | |
int | arrayLength |
size of jacobianRankCounters_m |
Definition at line 33 of file RangStatistik.h.
nCenterFocus::BaseRankStatistic::BaseRankStatistic | ( | std::string | name, | |
int | _requestedMinSuccessiveVanishedFocalValues, | |||
int | _maxFocalValuesToCompute, | |||
int | _maxRank | |||
) |
Holds statistics for at least _minSuccessiveZeroFocalValues vanished focal values
number of vanished focal values cannot exteed _maxFocalValues,
maximal expected and allowed jacobian rank is _maxRank
/
_requestedMinSuccessiveVanishedFocalValues | expected minimal #(vanished focal values) - parameter passed to addRankStatistic() | |
_maxFocalValuesToCompute | expected maximal (number of vanished focal values) - parameter passed to addRankStatistic() | |
_maxRank | expected maximal rank parameter passed to addRankStatistic() |
Definition at line 58 of file RangStatistik.cpp.
References init().
nCenterFocus::BaseRankStatistic::BaseRankStatistic | ( | const BaseRankStatistic & | ref | ) |
Definition at line 75 of file RangStatistik.cpp.
References arrayLength, exactVanishedFocalValuesStatistic_m, init(), jacobianRankCounters_m, and maxFocalValuesToCompute.
nCenterFocus::BaseRankStatistic::~BaseRankStatistic | ( | ) | [virtual] |
Definition at line 168 of file RangStatistik.cpp.
References jacobianRankCounters_m.
nCenterFocus::BaseRankStatistic::BaseRankStatistic | ( | ) | [private] |
void nCenterFocus::BaseRankStatistic::addRankStatistic | ( | int | successiveVanishedFocalValues, | |
int | jacobianRank | |||
) |
count occurence of number of vanishedFocalvalues
count rank:
Definition at line 249 of file RangStatistik.cpp.
References exactVanishedFocalValuesStatistic_m, getJacobianRankCounterRef(), getRankStatisticIndex(), maxFocalValuesToCompute, and minSuccessiveZeroFocalValues.
void nCenterFocus::BaseRankStatistic::clear | ( | ) |
Definition at line 153 of file RangStatistik.cpp.
References arrayLength, exactVanishedFocalValuesStatistic_m, jacobianRankCounters_m, and maxFocalValuesToCompute.
Referenced by init().
int nCenterFocus::BaseRankStatistic::getHighestLoggedJacobianRank | ( | ) | const |
Definition at line 187 of file RangStatistik.cpp.
References maxRank.
int nCenterFocus::BaseRankStatistic::getHighestLoggedNumOfVanishedFocalValues | ( | ) | const |
Definition at line 181 of file RangStatistik.cpp.
References maxFocalValuesToCompute.
Referenced by getValueAsString().
long64 nCenterFocus::BaseRankStatistic::getJacobianRankCounter | ( | int | index | ) | const [private] |
Definition at line 192 of file RangStatistik.cpp.
References jacobianRankCounters_m, and testbounds().
Referenced by getNumOfOccuredJacobianRank().
long64 & nCenterFocus::BaseRankStatistic::getJacobianRankCounterRef | ( | int | index | ) | [private] |
Definition at line 201 of file RangStatistik.cpp.
References jacobianRankCounters_m, and testbounds().
Referenced by addRankStatistic().
int nCenterFocus::BaseRankStatistic::getNumOfOccuredJacobianRank | ( | int | successiveVanishedNum, | |
int | jacobianRank | |||
) | const |
Definition at line 243 of file RangStatistik.cpp.
References getJacobianRankCounter(), and getRankStatisticIndex().
Referenced by getValueAsString().
long64 nCenterFocus::BaseRankStatistic::getOccurenceWithGivenNumOfVanishedFocalValues | ( | int | successiveVanishedNum | ) | const |
Definition at line 234 of file RangStatistik.cpp.
References exactVanishedFocalValuesStatistic_m, maxFocalValuesToCompute, and minSuccessiveZeroFocalValues.
Referenced by getValueAsString().
int nCenterFocus::BaseRankStatistic::getRankStatisticIndex | ( | int | successiveVanishedNum, | |
int | jacobianRank | |||
) | const [private] |
Definition at line 211 of file RangStatistik.cpp.
References maxFocalValuesToCompute, maxRank, and minSuccessiveZeroFocalValues.
Referenced by addRankStatistic(), and getNumOfOccuredJacobianRank().
int nCenterFocus::BaseRankStatistic::getSmallesLoggedNumOfVanishedFocalValues | ( | ) | const |
Definition at line 174 of file RangStatistik.cpp.
References minSuccessiveZeroFocalValues.
Referenced by getValueAsString().
std::string nCenterFocus::BaseRankStatistic::getValueAsString | ( | ) | const |
Definition at line 264 of file RangStatistik.cpp.
References getHighestLoggedNumOfVanishedFocalValues(), getNumOfOccuredJacobianRank(), getOccurenceWithGivenNumOfVanishedFocalValues(), getSmallesLoggedNumOfVanishedFocalValues(), and maxRank.
Referenced by print().
void nCenterFocus::BaseRankStatistic::init | ( | ) | [private] |
Definition at line 137 of file RangStatistik.cpp.
References arrayLength, clear(), jacobianRankCounters_m, maxFocalValuesToCompute, maxRank, and minSuccessiveZeroFocalValues.
Referenced by BaseRankStatistic(), and operator=().
BaseRankStatistic & nCenterFocus::BaseRankStatistic::operator= | ( | const BaseRankStatistic & | ref | ) |
Definition at line 101 of file RangStatistik.cpp.
References arrayLength, exactVanishedFocalValuesStatistic_m, init(), jacobianRankCounters_m, maxFocalValuesToCompute, maxRank, minSuccessiveZeroFocalValues, and name_m.
void nCenterFocus::BaseRankStatistic::print | ( | std::ostream & | os | ) | const |
Definition at line 311 of file RangStatistik.cpp.
References nCenterFocus::getMacaulayCompilantObjectName(), getValueAsString(), and name_m.
void nCenterFocus::BaseRankStatistic::testbounds | ( | int | maxbound | ) | const [inline, private] |
Definition at line 132 of file RangStatistik.cpp.
References arrayLength.
Referenced by getJacobianRankCounter(), and getJacobianRankCounterRef().
int nCenterFocus::BaseRankStatistic::arrayLength [private] |
Definition at line 136 of file RangStatistik.h.
Referenced by BaseRankStatistic(), clear(), init(), operator=(), and testbounds().
Definition at line 132 of file RangStatistik.h.
Referenced by addRankStatistic(), BaseRankStatistic(), clear(), getOccurenceWithGivenNumOfVanishedFocalValues(), and operator=().
const std::string nCenterFocus::BaseRankStatistic::fullRankStatisticString [static] |
Definition at line 38 of file RangStatistik.h.
format: two dimensional array (row index+minSuccessiveZeroFocalValues) represents SuccessiveVanishedFocalValues
first column stores the occurance for given number of VanishedFocalValues(see above),
next column store the portion with jacobian rank 0 , the following column the portion with jacobian rank 1 and so on. jacobian rank statistic data. Structure: two-dimensional-array [ maxFocalValuesToCompute-minSuccessiveZeroFocalValues+1 ] x [maxRank +1]
Definition at line 128 of file RangStatistik.h.
Referenced by BaseRankStatistic(), clear(), getJacobianRankCounter(), getJacobianRankCounterRef(), init(), operator=(), and ~BaseRankStatistic().
int nCenterFocus::BaseRankStatistic::maxFocalValuesToCompute [private] |
Definition at line 117 of file RangStatistik.h.
Referenced by addRankStatistic(), BaseRankStatistic(), clear(), getHighestLoggedNumOfVanishedFocalValues(), getOccurenceWithGivenNumOfVanishedFocalValues(), getRankStatisticIndex(), init(), and operator=().
int nCenterFocus::BaseRankStatistic::maxRank [private] |
Definition at line 116 of file RangStatistik.h.
Referenced by getHighestLoggedJacobianRank(), getRankStatisticIndex(), getValueAsString(), init(), and operator=().
Definition at line 118 of file RangStatistik.h.
Referenced by addRankStatistic(), getOccurenceWithGivenNumOfVanishedFocalValues(), getRankStatisticIndex(), getSmallesLoggedNumOfVanishedFocalValues(), init(), and operator=().
std::string nCenterFocus::BaseRankStatistic::name_m [private] |
Definition at line 114 of file RangStatistik.h.
Referenced by operator=(), and print().
const std::string nCenterFocus::BaseRankStatistic::subRankStatisticString [static] |
Definition at line 39 of file RangStatistik.h.