37 pair_list.first = vector<BinEstimator::CoverPair>(
_n_bins);
38 pair_list.second = vector<BinEstimator::CoverPair>(
_n_bins);
59 const vector<InputParameterSet> vec_set = *
_p_vec_set;
65 for (
Index i = 0; i < n_size; i++)
67 if (vec_set[i]._h_exc !=
_old_set[i]._h_exc || vec_set[i]._h_inh !=
_old_set[i]._h_inh)
77 const vector<InputParameterSet>& vec_set,
83 _p_estimator = &estimator;
84 _p_vec_set = &vec_set;
87 if (InputStepsHaveChanged() ){
88 InitializeCoverPairs();
89 _old_set = *_p_vec_set;
A geometric grid to represent population densities.
vector< input_pair_list > _vec_coverpair
const Estimator * _p_estimator
pair< vector< typename Estimator::CoverPair >, vector< typename Estimator::CoverPair > > input_pair_list
vector< InputParameterSet > _old_set
CNZLCache()
No default arguments for constructor.
void Initialize(const AbstractOdeSystem &, const vector< InputParameterSet > &set, const Estimator &)
Initialize the cache. Must be called before first use.
const vector< InputParameterSet > * _p_vec_set
Number NumberOfBins() const
Number of bins used in the grid representation.
void InitializeCoverPairs()
Calculates the coverage corresponding a given bin and a potential difference.
bool InputStepsHaveChanged() const