Representation of a prediction.
More...
Representation of a prediction.
- Copyright
- 2017 David Monllao http://www.davidmonllao.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_analytics\prediction::__construct |
( |
|
$prediction, |
|
|
|
$sampledata |
|
) |
| |
Constructor.
- Parameters
-
stdClass | int | $prediction | |
array | $sampledata | |
- Return values
-
◆ action_executed()
Stores the executed action.
Prediction instances should be retrieved using core_analytics\manager::get_prediction, It is the caller responsability to check that the user can see the prediction.
- Parameters
-
string | $actionname | |
core_analytics\local\target\base | $target | |
◆ get_calculations()
core_analytics\prediction::get_calculations |
( |
| ) |
|
Gets the prediction calculations.
- Return values
-
◆ get_prediction_data()
core_analytics\prediction::get_prediction_data |
( |
| ) |
|
Get prediction object data.
- Return values
-
◆ get_sample_data()
core_analytics\prediction::get_sample_data |
( |
| ) |
|
Get prediction sample data.
- Return values
-
The documentation for this class was generated from the following file: