mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 00:45:36 +00:00
XY*Data: better choice of default arguments for data interface
This commit is contained in:
parent
28b3306110
commit
82abf7872a
@ -289,6 +289,6 @@ void XYSampleData::setDataToSample(const Index s)
|
||||
isCovarianceInit_ = true;
|
||||
}
|
||||
// set data
|
||||
data_.x(_, _) = x_[s];
|
||||
data_.y(_, _) = y_[s];
|
||||
data_.x() = x_[s];
|
||||
data_.y() = y_[s];
|
||||
}
|
||||
|
@ -42,13 +42,13 @@ public:
|
||||
// destructor
|
||||
virtual ~SampleFitResult(void) = default;
|
||||
// access
|
||||
double getChi2(const Index s) const;
|
||||
const DSample & getChi2(const PlaceHolder ph = _) const;
|
||||
double getChi2PerDof(const Index s) const;
|
||||
DSample getChi2PerDof(const PlaceHolder ph = _) const;
|
||||
const DoubleFunction & getModel(const Index s,
|
||||
double getChi2(const Index s = central) const;
|
||||
const DSample & getChi2(const PlaceHolder ph) const;
|
||||
double getChi2PerDof(const Index s = central) const;
|
||||
DSample getChi2PerDof(const PlaceHolder ph) const;
|
||||
const DoubleFunction & getModel(const Index s = central,
|
||||
const Index j = 0) const;
|
||||
const DoubleFunctionSample & getModel(const PlaceHolder ph = _,
|
||||
const DoubleFunctionSample & getModel(const PlaceHolder ph,
|
||||
const Index j = 0) const;
|
||||
private:
|
||||
DSample chi2_;
|
||||
@ -75,16 +75,18 @@ public:
|
||||
const XYStatData & getData(const Index s = central);
|
||||
void resize(const Index nData, const Index xDim,
|
||||
const Index yDim, const Index nSample);
|
||||
SampleBlock x(const PlaceHolder ph1, const PlaceHolder ph2);
|
||||
ConstSampleBlock x(const PlaceHolder ph1, const PlaceHolder ph2) const;
|
||||
SampleBlock x(const PlaceHolder ph1 = _, const PlaceHolder ph2 = _);
|
||||
ConstSampleBlock x(const PlaceHolder ph1 = _,
|
||||
const PlaceHolder ph2 = _) const;
|
||||
SampleBlock x(const Index i, const PlaceHolder ph2 = _);
|
||||
ConstSampleBlock x(const Index i, const PlaceHolder ph2 = _) const;
|
||||
SampleBlock x(const PlaceHolder ph1, const Index k);
|
||||
ConstSampleBlock x(const PlaceHolder ph1, const Index k) const;
|
||||
SampleBlock x(const Index i, const Index k);
|
||||
ConstSampleBlock x(const Index i, const Index k) const;
|
||||
SampleBlock y(const PlaceHolder ph1, const PlaceHolder ph2);
|
||||
ConstSampleBlock y(const PlaceHolder ph1, const PlaceHolder ph2) const;
|
||||
SampleBlock y(const PlaceHolder ph1 = _, const PlaceHolder ph2 = _);
|
||||
ConstSampleBlock y(const PlaceHolder ph1 = _,
|
||||
const PlaceHolder ph2 = _) const;
|
||||
SampleBlock y(const Index i, const PlaceHolder ph2 = _);
|
||||
ConstSampleBlock y(const Index i, const PlaceHolder ph2 = _) const;
|
||||
SampleBlock y(const PlaceHolder ph1, const Index k);
|
||||
|
@ -75,16 +75,20 @@ public:
|
||||
// access
|
||||
void resize(const Index nData, const Index xDim,
|
||||
const Index yDim);
|
||||
Block<DMatBase> x(const PlaceHolder ph1, const PlaceHolder ph2);
|
||||
ConstBlock<DMatBase> x(const PlaceHolder ph1, const PlaceHolder ph2) const;
|
||||
Block<DMatBase> x(const PlaceHolder ph1 = _,
|
||||
const PlaceHolder ph2 = _);
|
||||
ConstBlock<DMatBase> x(const PlaceHolder ph1 = _,
|
||||
const PlaceHolder ph2 = _) const;
|
||||
Block<DMatBase> x(const Index i, const PlaceHolder ph2 = _);
|
||||
ConstBlock<DMatBase> x(const Index i, const PlaceHolder ph2 = _) const;
|
||||
Block<DMatBase> x(const PlaceHolder ph1, const Index k);
|
||||
ConstBlock<DMatBase> x(const PlaceHolder ph1, const Index k) const;
|
||||
double & x(const Index i, const Index k);
|
||||
const double & x(const Index i, const Index k) const;
|
||||
Block<DMatBase> y(const PlaceHolder ph1, const PlaceHolder ph2);
|
||||
ConstBlock<DMatBase> y(const PlaceHolder ph1, const PlaceHolder ph2) const;
|
||||
Block<DMatBase> y(const PlaceHolder ph1 = _,
|
||||
const PlaceHolder ph2 = _);
|
||||
ConstBlock<DMatBase> y(const PlaceHolder ph1 = _,
|
||||
const PlaceHolder ph2 = _) const;
|
||||
Block<DMatBase> y(const Index i, const PlaceHolder ph2 = _);
|
||||
ConstBlock<DMatBase> y(const Index i, const PlaceHolder ph2 = _) const;
|
||||
Block<DMatBase> y(const PlaceHolder ph1, const Index k);
|
||||
|
Loading…
Reference in New Issue
Block a user