private void Invalidate() { _fisherExactTest = new ThreadLocal <double>(() => SpecialFunctions.FisherExactTest(Counts)); _bayesScore = new ThreadLocal <double>(() => SpecialFunctions.BayesScore(Counts)); _chiSquareTest = new ThreadLocal <double>(() => SpecialFunctions.LikelihoodRatioTestOnNByMCounts(Counts)); }