All pastes #398080 Raw Edit

Mine

public text v1 · immutable
·published 2007-03-16 22:53 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)));

    return (ic / (total * (total - 1)));
}