DGtalTools  0.9.2
statisticsEstimators

Computes satistics (L1, L2, Loo) from results of two estimators.

Usage: statisticsEstimators –file1 <file1> –column1 <column1> –file2 <file2> –column2 <column2> –output <output>

Allowed options are :

-h [ --help ] display this message
-f [ --file1 ] arg File 1
-F [ --file2 ] arg File 2
-c [ --column1 ] arg Column of file 1
-C [ --column2 ] arg Column of file 2
-o [ --output ] arg Output file
-m [ --monge ] arg (=0) Is from Monge mean computation (optional)

Example:

This tool can be used in association to other estimator with for instance the 2dLocalEstimators which gives as output a file containing the curvature:

./estimators/2dlocalEstimators --output curvature --shape flower --radius 15 -v 5 --gridstep 1 --estimators 11100 --properties 01

Then you can use this tool as follows:

./estimators/statisticsEstimators --file1 curvature_True_curvature.dat --column1 0 --file2 curvature_II_curvature.dat --column2 0 -o result.dat

The resulting file result.dat should contains:

# h | L1 Mean Error | L2 Mean Error | Loo Mean Error
1 0.0844106 0.0108399 0.519307
See also
statisticsEstimators.cpp