MCPcopy Create free account
hub / github.com/creatale/node-dv / NewChiStruct

Function NewChiStruct

deps/tesseract/classify/cluster.cpp:2332–2340  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

2330 * @note History: Fri Aug 4 11:04:59 1989, DSJ, Created.
2331 */
2332CHISTRUCT *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

Callers 1

cluster.cppFile · 0.85

Calls 1

EmallocFunction · 0.85

Tested by

no test coverage detected