コード例 #1
0
    def test_obrientransform(self):
        "Testing obrientransform"
        results = [ 96.66666667,  77.19298246,  59.88304094,  44.73684211,  31.75438596,
                    20.93567251,  12.28070175,   5.78947368,   1.4619883,   -0.70175439,
                    -0.70175439,   1.4619883,    5.78947368,  12.28070175,  20.93567251,
                    31.75438596,  44.73684211,  59.88304094,  77.19298246,  96.66666667]
 

        i = 0
        for f in results: # we'll look at the first results only
           self.EQ( stats.obrientransform( self.L, self.L, self.L, self.L, self.L)[0][i], f )
           i += 1
コード例 #2
0
    def test_obrientransform(self):
        "Testing obrientransform"
        results = [ 96.66666667,  77.19298246,  59.88304094,  44.73684211,  31.75438596,
                    20.93567251,  12.28070175,   5.78947368,   1.4619883,   -0.70175439,
                    -0.70175439,   1.4619883,    5.78947368,  12.28070175,  20.93567251,
                    31.75438596,  44.73684211,  59.88304094,  77.19298246,  96.66666667]
 

        i = 0
        for f in results: # we'll look at the first results only
           self.EQ( stats.obrientransform( self.L, self.L, self.L, self.L, self.L)[0][i], f )
           i += 1
コード例 #3
0
print(stats.cumfreq(af))
print('relfreq:')
print(stats.relfreq(l))
print(stats.relfreq(lf))
print(stats.relfreq(a))
print(stats.relfreq(af))

print('\nVARIATION')
print('obrientransform:')

l = list(range(1, 21))
a = N.array(l)
ll = [l] * 5
aa = N.array(ll)

print(stats.obrientransform(l, l, l, l, l))
print(stats.obrientransform(a, a, a, a, a))

print('samplevar:', stats.samplevar(l), stats.samplevar(a))
print('samplestdev:', stats.samplestdev(l), stats.samplestdev(a))
print('var:', stats.var(l), stats.var(a))
print('stdev:', stats.stdev(l), stats.stdev(a))
print('sterr:', stats.sterr(l), stats.sterr(a))
print('sem:', stats.sem(l), stats.sem(a))
print('z:', stats.z(l, 4), stats.z(a, 4))
print('zs:')
print(stats.zs(l))
print(stats.zs(a))

print('\nTRIMMING')
print('trimboth:')
コード例 #4
0
print stats.cumfreq(af)
print 'relfreq:'
print stats.relfreq(l)
print stats.relfreq(lf)
print stats.relfreq(a)
print stats.relfreq(af)

print '\nVARIATION'
print 'obrientransform:'

l = range(1,21)
a = N.array(l)
ll = [l]*5
aa = N.array(ll)

print stats.obrientransform(l,l,l,l,l)
print stats.obrientransform(a,a,a,a,a)

print 'samplevar:',stats.samplevar(l),stats.samplevar(a)
print 'samplestdev:',stats.samplestdev(l),stats.samplestdev(a)
print 'var:',stats.var(l),stats.var(a)
print 'stdev:',stats.stdev(l),stats.stdev(a)
print 'sterr:',stats.sterr(l),stats.sterr(a)
print 'sem:',stats.sem(l),stats.sem(a)
print 'z:',stats.z(l,4),stats.z(a,4)
print 'zs:'
print stats.zs(l)
print stats.zs(a)

print '\nTRIMMING'
print 'trimboth:'
コード例 #5
0
ファイル: test_allstats.py プロジェクト: haavee/RDBE
print stats.cumfreq(af)
print 'relfreq:'
print stats.relfreq(l)
print stats.relfreq(lf)
print stats.relfreq(a)
print stats.relfreq(af)

print '\nVARIATION'
print 'obrientransform:'

l = range(1, 21)
a = N.array(l)
ll = [l] * 5
aa = N.array(ll)

print stats.obrientransform(l, l, l, l, l)
print stats.obrientransform(a, a, a, a, a)

print 'samplevar:', stats.samplevar(l), stats.samplevar(a)
print 'samplestdev:', stats.samplestdev(l), stats.samplestdev(a)
print 'var:', stats.var(l), stats.var(a)
print 'stdev:', stats.stdev(l), stats.stdev(a)
print 'sterr:', stats.sterr(l), stats.sterr(a)
print 'sem:', stats.sem(l), stats.sem(a)
print 'z:', stats.z(l, 4), stats.z(a, 4)
print 'zs:'
print stats.zs(l)
print stats.zs(a)

print '\nTRIMMING'
print 'trimboth:'