1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-06-18 15:27:05 +01:00

XYStatData: simpler data access

This commit is contained in:
2014-03-03 18:57:53 +00:00
parent 0df75d0809
commit 6b8ba55e47
4 changed files with 114 additions and 49 deletions

View File

@ -22,9 +22,9 @@ int main(void)
for (Index k = 0; k < nPoint; ++k)
{
x_k = k*dx;
data.x(0, k)(0, 0) = x_k;
data.y(0, k)(0, 0) = f(&x_k, exactPar) + rg.gaussian(0.0, 0.1);
x_k = k*dx;
data.x(0, k) = x_k;
data.y(0, k) = f(&x_k, exactPar) + rg.gaussian(0.0, 0.1);
}
data.yyVar(0, 0).diagonal() = DMat::Constant(nPoint, 1, 0.1*0.1);
data.assumeXExact(0);