Documentation

DataValidator
in package

FinalYes

Single source of truth for dataset validation and normalization.

Rejects non-numeric and non-finite values, reindexes non-sequential keys, and optionally sorts numerically. Used by QuantileEngine, CentralTendencyEngine, and DataProcessorTrait so the three entry points share one policy.

Table of Contents

Methods

prepare()  : array<int, int|float>

Methods

prepare()

public static prepare(array<int|string, mixed> $data[, int $minCount = 1 ][, bool $sort = false ]) : array<int, int|float>
Parameters
$data : array<int|string, mixed>
$minCount : int = 1
$sort : bool = false
Return values
array<int, int|float>

        
On this page

Search results