Ultra 0.9.4
Loading...
Searching...
No Matches
ultra::model_measurements< F > Struct Template Reference

#include <model_measurements.h>

Public Member Functions

 model_measurements (const F &, double)
bool empty () const noexcept
bool load (std::istream &)
bool save (std::ostream &) const

Public Attributes

std::optional< F > fitness {}
std::optional< double > accuracy {}

Friends

bool operator== (const model_measurements &, const model_measurements &) noexcept=default

Detailed Description

template<Fitness F>
struct ultra::model_measurements< F >

A collection of measurements.

Member Function Documentation

◆ empty()

template<Fitness F>
bool model_measurements::empty ( ) const
nodiscardnoexcept
Returns
true if all the fields are empty

◆ load()

template<Fitness F>
bool model_measurements::load ( std::istream & is)
nodiscard

Loads the object from a stream.

Parameters
[in]isinput stream
Returns
true if the object loaded correctly
Note
If the load operation isn't successful the current object isn't changed.

◆ save()

template<Fitness F>
bool model_measurements::save ( std::ostream & os) const
nodiscard

Saves the object into a stream.

Parameters
[out]osoutput stream
Returns
true if summary was saved correctly

The documentation for this struct was generated from the following files: