The function Perform1SampleChi2Test returns the probability associated with a 1sample chisquare test (probability which indicates the likelihood that the sample has come from an underlying population having the standard deviation RefStdDev).
The array data contains the data, the parameter RefStdDev defines the standard deviation of the population to be compared with. The parameter OneSided has to be TRUE for onesided tests, or FALSE for twosided tests. The function returns additional parameters obtained during the chisquare test calculation:
Mean 
the mean of the sample 
StdDev 
the standard deviation of the sample 
Chi2Statistic 
chisquare statistic 
df 
degrees of freedom 
The function returns the following values:
≥0 ... the pvalue associated with the chisquare statistic
1 ... the array data contains less than 3 data points
2 ... the reference standard deviation is zero or negative
