public void CorrelationCoefficient() { const int N = 10000; var x = new double[N]; var y = new double[N]; var logistics = new LogisticsRandomizer(); var weibull = new WeibullRandomizer(0.5); logistics.Fill(x, 5, 2); weibull.Fill(y, 5, 2); if(IsDebugEnabled) log.Debug("CorrelationCoefficient = " + x.CorrelationCoefficient(y)); }
public void CorrelationCoefficient() { const int N = 10000; var x = new double[N]; var y = new double[N]; var logistics = new LogisticsRandomizer(); var weibull = new WeibullRandomizer(0.5); logistics.Fill(x, 5, 2); weibull.Fill(y, 5, 2); if (IsDebugEnabled) { log.Debug("CorrelationCoefficient = " + x.CorrelationCoefficient(y)); } }