CalculatorInterface
in
Table of Contents
Methods
- calculate() : array<string|int, mixed>
- Calculate recommendations for the given source model(s)
Methods
calculate()
Calculate recommendations for the given source model(s)
public
calculate(mixed $sourceData, array<string|int, mixed> $configuration) : array<string|int, mixed>
Parameters
- $sourceData : mixed
-
Source model(s) to calculate recommendations for
- $configuration : array<string|int, mixed>
-
Configuration parameters for the calculation
Return values
array<string|int, mixed> —Array of recommendations [sourceId => [targetId => score]]