All pastes #398077 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-16 22:51 UTC
rendered paste body
float findIC(float *frequency, float total)
{
    int i, ic;

    for (i = 0; i <= 25; i++)
        ic += ((frequency[i] * (frequency[i] - 1))) / (total * (total - 1));
    return ic;
}