abstract foxes.core.DataCalcModel.calculate(algo, *data, **parameters)[source]

The main model calculation.

This function is executed on a single chunk of data, all computations should be based on numpy arrays.

Parameters

algo: foxes.core.Algorithm

The calculation algorithm

data: tuple of foxes.core.Data

The input data

parameters: dict, optional

The calculation parameters

Returns

results: dict

The resulting data, keys: output variable str. Values: numpy.ndarray