MathPHP\Statistics\DistributionTest::dataProviderForRelativeFrequency PHP Метод

dataProviderForRelativeFrequency() публичный Метод

    public function dataProviderForRelativeFrequency()
    {
        return [[['A', 'A', 'B', 'B', 'B', 'B', 'C', 'C', 'D', 'F'], ['A' => 0.2, 'B' => 0.4, 'C' => 0.2, 'D' => 0.1, 'F' => 0.1]], [[1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4], [1 => 0.16129032, 2 => 0.09677419, 3 => 0.29032258, 4 => 0.4516129]], [['yes', 'yes', 'no', 'yes', 'no', 'no', 'yes', 'yes', 'yes', 'no'], ['yes' => 0.6, 'no' => 0.4]], [['agree', 'disagree', 'agree', 'agree', 'no opinion', 'agree', 'disagree'], ['agree' => 0.57142857, 'disagree' => 0.28571429, 'no opinion' => 0.14285714]]];
    }