chi2 statistical test take lot of time in calculations , i want to store chi2 test values as a RAM in my program and each time i want to search whether it is already calculated or not.
Test formate is like this:
inputs:
(a,b) given (c, d, ........(not fixed, may be zero or one or more than one))
so, there are two main problems
1- how to store both input variables and output values?
2- how i can implement search on input values? (input variables can change their orders so, search can be done by any order)
Maybe you want them in a global fashion rather than local? Then put the keyword static in front of the variables that should hold the data during the whole runtime.