PyFoam.Basics.Data2DStatistics module

Data structure to do some calculations on the results from SpreadSheetData-methods metrics and compare that are organized in 2 dimensions

class PyFoam.Basics.Data2DStatistics.Data2DStatistics(metrics, compare=None, small=1e-10, noStrings=False, failureValue=None)[source]

Bases: object

Oranize statistics about data in 2D-Tables and do basic calculations on it

compare()[source]

Get a separate Data2DStatistics with the compare-data (if present)

func(func, val)[source]

Evaluate a function on the data :param func: either a callable function or a string that evaluates to a callable :param val: name of the data value to use

names()[source]

Valid data names

range()[source]

Return a table with the ranges of the data

relativeAverageError()[source]

Return a table with the relative average error

relativeError()[source]

Return a table with the relative error