Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

PHP: Dividir array en grupos calcular AVG de c/grupo - https://es.stac...

Language: Layout:
+ ] Show input
Absolute running time: 0.1 sec, cpu time: 0.05 sec, memory peak: 8 Mb, absolute service time: 0,1 sec 
edit mode |  history
Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [0] => 7.261
                    [1] => 7.215
                    [2] => 7.218
                    [3] => 7.305
                    [avg] => 7.25
                )

            [1] => Array
                (
                    [0] => 7.499
                    [1] => 7.499
                    [2] => 8.21
                    [3] => 8.67
                    [avg] => 7.97
                )

            [2] => Array
                (
                    [0] => 9.17
                    [1] => 9.7
                    [2] => 10.28
                    [3] => 10.91
                    [avg] => 10.02
                )

            [3] => Array
                (
                    [0] => 11.57
                    [1] => 12.28
                    [2] => 13.09
                    [3] => 13.96
                    [avg] => 12.73
                )

            [4] => Array
                (
                    [0] => 14.87
                    [1] => 15.73
                    [2] => 16.57
                    [3] => 17.38
                    [avg] => 16.14
                )

        )

    [1] => Array
        (
            [0] => Array
                (
                    [0] => 21.32
                    [1] => 21.18
                    [2] => 21.07
                    [3] => 20.54
                    [avg] => 21.03
                )

            [1] => Array
                (
                    [0] => 20.61
                    [1] => 20.92
                    [2] => 20.16
                    [3] => 20.26
                    [avg] => 20.49
                )

            [2] => Array
                (
                    [0] => 20.39
                    [1] => 20.49
                    [2] => 20.05
                    [3] => 20.29
                    [avg] => 20.31
                )

            [3] => Array
                (
                    [0] => 20.7
                    [1] => 20.82
                    [2] => 20.27
                    [3] => 20.47
                    [avg] => 20.57
                )

            [4] => Array
                (
                    [0] => 20.89
                    [1] => 20.91
                    [2] => 21.04
                    [3] => 21.1
                    [avg] => 20.99
                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [0] => 25.47
                    [1] => 27.68
                    [2] => 26.18
                    [3] => 27.44
                    [avg] => 26.69
                )

            [1] => Array
                (
                    [0] => 25.63
                    [1] => 26.31
                    [2] => 27.69
                    [3] => 26.4
                    [avg] => 26.51
                )

            [2] => Array
                (
                    [0] => 25.64
                    [1] => 26.6
                    [2] => 24.95
                    [3] => 26.47
                    [avg] => 25.92
                )

            [3] => Array
                (
                    [0] => 25.59
                    [1] => 24.71
                    [2] => 26.27
                    [3] => 26.03
                    [avg] => 25.65
                )

            [4] => Array
                (
                    [0] => 26.71
                    [1] => 27.24
                    [2] => 27.54
                    [3] => 28.17
                    [avg] => 27.42
                )

        )

    [3] => Array
        (
            [0] => Array
                (
                    [0] => 15.98
                    [1] => 14.7
                    [2] => 15.01
                    [3] => 14.28
                    [avg] => 14.99
                )

            [1] => Array
                (
                    [0] => 16.87
                    [1] => 14.98
                    [2] => 13.02
                    [3] => 13.96
                    [avg] => 14.71
                )

            [2] => Array
                (
                    [0] => 15.67
                    [1] => 14.73
                    [2] => 15.45
                    [3] => 14.34
                    [avg] => 15.05
                )

            [3] => Array
                (
                    [0] => 14.78
                    [1] => 16.68
                    [2] => 15.01
                    [3] => 14.31
                    [avg] => 15.2
                )

            [4] => Array
                (
                    [0] => 16.76
                    [1] => 13.87
                    [2] => 16.95
                    [3] => 14.38
                    [avg] => 15.49
                )

        )

)