#include <model.h>
ZGen::BestFirst::Model::Model |
( |
| ) |
|
void ZGen::BestFirst::Model::flush |
( |
int |
timestamp | ) |
|
bool ZGen::BestFirst::Model::load |
( |
std::istream & |
is | ) |
|
Load model from the input stream.
- Parameters
-
- Returns
- bool If successfully loaded, return true; otherwise return false.
bool ZGen::BestFirst::Model::save |
( |
std::ostream & |
os | ) |
|
Save model to the output stream.
- Parameters
-
[out] | ofs | The output stream. |
- Returns
- bool If successfully saved, return true; otherwise return false.
floatval_t ZGen::BestFirst::Model::score |
( |
const Span & |
span, |
|
|
bool |
avg |
|
) |
| const |
Scoring the span.
- Parameters
-
- Returns
- floatval_t The score for the span.
void ZGen::BestFirst::Model::update |
( |
const Span & |
span, |
|
|
int |
timestamp, |
|
|
floatval_t |
scale |
|
) |
| |
Update the model parameters according to the model.
- Parameters
-
[in] | span | The span. |
[in] | timestamp | The timestamp. |
[in] | scale | The update scale. |
Update the model parameters according to the model.
- Parameters
-
[in] | span | The span. |
[in] | timestamp | The timestamp. |
[in] | scale | The update scale. |
The documentation for this class was generated from the following files: