Exemplo n.º 1
0
def print_correlations(samples, size, rho):
    print('size = ' + str(size) + ', rho = ' + str(rho))
    for sample in samples:
        print(' $ ' + str(round(Correlation.mean(sample), 4)) + ' $ ', end='&')
    print()
    for sample in samples:
        print(' $ ' + str(round(Correlation.square_mean(sample), 4)) + ' $ ',
              end='&')
    print()
    for sample in samples:
        print(' $ ' + str(round(Correlation.variance(sample), 4)) + ' $ ',
              end='&')
    print()
Exemplo n.º 2
0
def print_correlation(sample, name, size, rho):
    print(name + ', ' + 'size = ' + str(size) + ', ' + 'rho = ' + str(rho))
    print(Correlation.mean(sample))
    print(Correlation.square_mean(sample))
    print(Correlation.variance(sample))
    print()