"""Expected results for distances."""

# The key string (i.e. 'euclidean') must be the same as the name in _registry

_expected_distance_results = {
    # Result structure:
    # [single value series, univariate series, multivariate series, dataset,
    #   unequal univariate, multivariate unequal, dataset unequal]
    "euclidean": [
        1.045183524092443,
        1.045183524092443,
        0.9365371345320802,
        1.9034740667210865,
        5.0,
    ],
    "squared": [
        1.0924085990342982,
        1.0924085990342982,
        0.8771018043575597,
        3.6232135226797118,
        25.0,
    ],
    "manhattan": [
        2.5687181410313746,
        2.5687181410313746,
        1.669520993371874,
        8.052266185963168,
        5.0,
    ],
    "minkowski": [
        1.045183524092443,
        1.045183524092443,
        0.9365371345320802,
        1.9034740667210865,
        5.0,
    ],
    "dtw": [
        0.344520787316184,
        0.344520787316184,
        0.2998607605839068,
        4.0997661869195205,
        25.0,
    ],
    "dtw_gi": [
        0.344520787316184,
        0.344520787316184,
        0.2998607605839068,
        5.893210968537887,
        25.0,
    ],
    "ddtw": [
        0.2963709096971962,
        0.2963709096971962,
        0.4692544382372352,
        2.4511826943294768,
    ],
    "wdtw": [
        0.1538864581011592,
        0.1538864581011592,
        0.13948055913998444,
        1.9067654186580605,
        12.343758137512241,
    ],
    "wddtw": [
        0.13485501732653973,
        0.13485501732653973,
        0.23222445828455743,
        1.1930214406085302,
    ],
    "lcss": [0.0, 0.0, 0.0, 0.0, 1.0],
    "erp": [
        1.521474398564429,
        1.521474398564429,
        2.209152442045423,
        10.059264288362614,
        5.0,
    ],
    "edr": [0.7, 0.7, 0.4, 0.5],
    "twe": [
        4.86544682316226,
        4.86544682316226,
        7.801489173583822,
        15.581610284880277,
        5.0,
    ],
    "msm": [
        2.5687181410313746,
        2.5687181410313746,
        6.444280278934788,
        32.53070253977585,
        5.0,
    ],
    "adtw": [
        1.0924085990342982,
        1.0924085990342982,
        5.480055929763675,
        9.09976618691952,
        25.0,
    ],
    "shape_dtw": [
        0.5552136800871651,
        0.5552136800871651,
        0.5034267964201281,
        4.670272648365347,
        25.0,
    ],
    "soft_dtw": [
        12.948921674222193,
        12.948921674222193,
        7.572515659641623,
        1.972517138600932,
        25.0,
    ],
    "sbd": [
        0.6617308353925114,
        0.6617308353925114,
        0.5750093257763462,
        0.5263609881742105,
        0.0,
    ],
    "shift_scale": [
        0.6327181526254056,
        0.6327181526254056,
        5.551115123125783e-17,
        None,
        0.0,
    ],
}


_expected_distance_results_params = {
    # Result structure:
    # [univariate series, multivariate series]
    "dtw": [
        [0.344520787316184, 12.628898697422404],
        [0.7458664165601868, 13.072037194954508],
    ],
    "ddtw": [
        [0.2963709096971962, 8.876765335304274],
        [0.9535108046009214, 9.381308498491947],
    ],
    "wdtw": [
        [0.1538864581011592, 5.561271049769699],
        [0.32860719692831625, 5.72324506524598],
        [0.004422599919761217, 0.0874891962225373],
    ],
    "wddtw": [
        [0.13485501732653973, 4.048624865187837],
        [0.42923814742655975, 4.2231461467446],
        [0.008745656717351434, 0.16873418437303003],
    ],
    "lcss": [[0.0, 0.6], [0.0, 1.0], [0.09999999999999998, 1.0]],
    "erp": [
        [1.521474398564429, 11.175717119812518],
        [2.5687181410313746, 11.175717119812518],
        [1.2468216724244057, 11.175717119812518],
        [2.5687181410313746, 11.175717119812518],
    ],
    "edr": [[0.8, 1.0], [0.8, 1.0], [0.1, 1.0]],
    "twe": [
        [4.86544682316226, 21.05530360854359],
        [4.86544682316226, 21.05530360854359],
        [4.232517160953263, 21.05530360854359],
        [4.86544682316226, 21.05530360854359],
    ],
    "msm": [
        [2.5687181410313746, 28.97170437295012],
        [2.5687181410313746, 28.97170437295012],
        [2.5687181410313746, 28.657118461088324],
        [1.8756413986565008, 22.362537814430787],
    ],
    "adtw": [
        [1.0924085990342982, 13.072037194954508],
        [1.0924085990342982, 13.072037194954508],
        [1.0924085990342982, 13.072037194954508],
    ],
    "shape_dtw": [
        [0.5552136800871651, 13.072037194954508],
        [0.9087917142622931, 13.072037194954508],
        [0.5328555761145305, 13.072037194954508],
        [0.5328555761145305, 13.072037194954508],
    ],
    "soft_dtw": [
        [12.25477773906269, 6.893330315245519],
        [8.602610210695161, 8.645028399102344],
        [1.750534284134988, 12.516745017325773],
    ],
    "sbd": [[0.2435580798173309, 0.18613277150939772]],
    "shift_scale": [
        [0.8103639073457298, 5.535457073146429],
        [0.6519267432870345, 5.491208968546096],
    ],
}
