snoplusuk / echidna

MIT License
4 stars 12 forks source link

Adds `test_statistic` module. #100

Closed ashleyrback closed 8 years ago

ashleyrback commented 9 years ago

This contains the base TestStatistic class from which all test statistics for use in the Fit class, should inherit.

Also modifies the current ChiSquared class in chi_squared to inherit from TestStatistic.

ashleyrback commented 9 years ago

@jwaterfield here is the test statistic code so far. I haven't actually tested it yet, but it should at least give you an idea of how to incorporate it into the Fit class.