s; i++) {
        result[i] = new Array(input.n_samples)
    }
    var m = accessors[metric]
    for (i = 0; i < input.n_samples; i++) {
        for (j = i + 1; j < input.n_samples; j++) {
            result[i][j] = m(input, i, j)
        }
    }
    return result
}

function getc(rel_pairs, sample_a, sample_b) {
    var c = rel_pairs.get(sample_a + "--" + sample_b)
    //if (c != undefined){ return c}
    //c = rel_pairs.get(sample_b + "--" + sample_a)
    if (c == undefined) {
        c = 0
    } 
    ret