ChiSquare Plugin

The purpose of the ChiSquare plugin (tel_chisquare.dll) is to calculate the ChiSquare and the Reduced ChiSquare for two datasets.

The following code shows simple usage of the plugin.

from telplugins import *

try:   
    modelPlugin     = Plugin("tel_test_model")            
    noisePlugin     = Plugin("tel_add_noise")
    chiSquarePlugin = Plugin("tel_chisquare")       

    #Generate internal test data
    modelPlugin.execute()
    modelData = modelPlugin.TestData
    expData = modelPlugin.TestDataWithNoise

    chiSquarePlugin.ExperimentalData = expData         
    chiSquarePlugin.ModelData = modelData
    chiSquarePlugin.NrOfModelParameters = 1

    chiSquarePlugin.execute()

    chi = chiSquarePlugin.ChiSquare
    reduced_chi = chiSquarePlugin.ReducedChiSquare

    print 'ChiSquare is: ' + `chi`
    print 'Reduced ChiSquare is: ' + `reduced_chi`

except Exception as e:
    print 'Problem: ' + `e`

More information can be found in the embedded Plugin Document, available here: chisquare

Current Version: 1.0.0 (2014-03-08)