> */ protected $aSamples; /** * @var array> */ protected $bSamples; public function setUp() : void { $mask = Matrix::rand(self::NUM_SAMPLES, 100) ->greater(0.8); $samples = Matrix::gaussian(self::NUM_SAMPLES, 100) ->multiply($mask) ->asArray(); $this->dataset = Unlabeled::quick($samples); $this->transformer = new BM25Transformer(); } /** * @Subject * @Iterations(3) * @OutputTimeUnit("milliseconds", precision=3) */ public function apply() : void { $this->dataset->apply($this->transformer); } }