How to use the pymannkendall.correlated_multivariate_test function in pymannkendall

To help you get started, we’ve selected a few pymannkendall examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mmhs013 / pyMannKendall / tests / test_pymannkendall.py View on Github external
def test_correlated_multivariate_test(NoTrend2dData,arbitrary_2d_data):
    # check with no trend data
    NoTrendRes = mk.correlated_multivariate_test(NoTrend2dData)
    assert NoTrendRes.trend == 'no trend'
    assert NoTrendRes.h == False
    assert NoTrendRes.Tau == 0.0
    assert NoTrendRes.s == 0.0
    assert NoTrendRes.var_s == 0.0
    assert NoTrendRes.slope == 0.0
    
    # check with arbitrary data
    result = mk.correlated_multivariate_test(arbitrary_2d_data)
    assert result.trend == 'no trend'
    assert result.h == False
    assert result.p == 0.05777683185903615
    assert result.z == -1.8973873659119118
    assert result.Tau == -0.05868196964087375
    assert result.s == -317.0
    assert result.var_s == 27913.000000000007
github mmhs013 / pyMannKendall / tests / test_pymannkendall.py View on Github external
def test_correlated_multivariate_test(NoTrend2dData,arbitrary_2d_data):
    # check with no trend data
    NoTrendRes = mk.correlated_multivariate_test(NoTrend2dData)
    assert NoTrendRes.trend == 'no trend'
    assert NoTrendRes.h == False
    assert NoTrendRes.Tau == 0.0
    assert NoTrendRes.s == 0.0
    assert NoTrendRes.var_s == 0.0
    assert NoTrendRes.slope == 0.0
    
    # check with arbitrary data
    result = mk.correlated_multivariate_test(arbitrary_2d_data)
    assert result.trend == 'no trend'
    assert result.h == False
    assert result.p == 0.05777683185903615
    assert result.z == -1.8973873659119118
    assert result.Tau == -0.05868196964087375
    assert result.s == -317.0
    assert result.var_s == 27913.000000000007
    assert result.slope == -0.680446465481604