* This routine allocates a new data structure which is used * to hold a chi-squared value along with its associated * number of degrees of freedom and alpha value. * * @param DegreesOfFreedom degrees of freedom for new chi value * @param Alpha confidence level for new chi value * @return none * @note Exceptions: none * @note History: Fri Aug 4 11:04:59 1989, DSJ, Created. */
| 2330 | * @note History: Fri Aug 4 11:04:59 1989, DSJ, Created. |
| 2331 | */ |
| 2332 | CHISTRUCT *NewChiStruct(uinT16 DegreesOfFreedom, FLOAT64 Alpha) { |
| 2333 | CHISTRUCT *NewChiStruct; |
| 2334 | |
| 2335 | NewChiStruct = (CHISTRUCT *) Emalloc (sizeof (CHISTRUCT)); |
| 2336 | NewChiStruct->DegreesOfFreedom = DegreesOfFreedom; |
| 2337 | NewChiStruct->Alpha = Alpha; |
| 2338 | return (NewChiStruct); |
| 2339 | |
| 2340 | } // NewChiStruct |
| 2341 | |
| 2342 | /** |
| 2343 | * This routine attempts to find an x value at which Function |