1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

fake sample utility fix

This commit is contained in:
Antonin Portelli 2015-06-26 20:34:18 +01:00
parent 1f21f7fb81
commit 1adf182caf

View File

@ -47,7 +47,14 @@ int main(int argc, char *argv[])
FOR_STAT_ARRAY(res, s)
{
res[s](0, 0) = gen.gaussian(val, err);
if (s == central)
{
res[s](0, 0) = val;
}
else
{
res[s](0, 0) = gen.gaussian(val, err);
}
}
Io::save<DMatSample, AsciiFile>(res, outFileName);