Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/s/c/scikits.hydroclimpy-HEAD/scikits/hydroclimpy/stats/lmoments.py   scikits.hydroclimpy(Download)
        reorg = lambda (m, s, g): (g, m, s)
        lmoms = (lmom_1, lmom_2, tau_3) = (0., 1., 0.)
        params = extradist.pearson3.lmparams(lmoms)
        assert_almost_equal(np.array(params), (0.000000, 1.772454, 0.000000))
        assert_almost_equal(pearson3(*reorg(params)).lmoments(3),
                            np.array(lmoms),)
        #
        lmoms = (lmom_1, lmom_2, tau_3) = (0., 1., 0.5)
        params = extradist.pearson3.lmparams(lmoms)
        #
        lmoms = (lmom_1, lmom_2, tau_3) = (-0.5, 0.5, 0.5)
        params = extradist.pearson3.lmparams(lmoms)
        assert_almost_equal(np.array(params), (-0.5000, 1.149966, +3.079345), 6)
        assert_almost_equal(pearson3(*reorg(params)).lstats(3),