int {method_name} (float features[]) {{
    int i, l;
    double prob = 0.;
    for (i = 0, l = sizeof(coefficients) / sizeof (coefficients[0]); i < l; i++) {{
        prob += coefficients[i] * features[i];
    }}
    if (prob + intercepts > 0) {{
        return 1;
    }}
    return 0;
}}