#include <Mille.h>
Definition at line 39 of file Mille.h.
◆ Mille()
| R3B::Mille::Mille |
( |
std::string_view | outFileName, |
|
|
bool | asBinary = true, |
|
|
bool | writeZero = false ) |
|
explicit |
◆ check_buffer_size()
| void R3B::Mille::check_buffer_size |
( |
std::size_t | nLocal, |
|
|
std::size_t | nGlobal ) |
|
private |
◆ close()
| void R3B::Mille::close |
( |
| ) |
|
◆ end()
Streaming the entry data to the output file and call the reset() function to clear the internal buffer. Before writing the data from the buffer, the size of the buffer is first written, as the start of the entry data and also the indicator of the end of the entry data.
Definition at line 121 of file Mille.cxx.
◆ get_n_entries()
| auto R3B::Mille::get_n_entries |
( |
| ) |
const -> uint64_t |
|
inline |
◆ mille()
The conversion of the MilleDataPoint to the MilleBuffer follows the sequence:
- If the sigma value is negative, returns immediately.
- Check if the current internal buffer has enough of space to store the latest data point.
- Check if the size of the global and local values from the data point is zero. If so, store [0, 0] to the internal buffer.
- Add an index-value pair [0, measurement]
- Add all local derivatives with indices.
- Add an index-value pair [0, sigma]
- Add all global derivatives with indices.
- Parameters
-
| data_point | Input data structure which stores the local/global derivatives, measurement and error. |
Definition at line 55 of file Mille.cxx.
◆ reset()
| void R3B::Mille::reset |
( |
| ) |
|
◆ set_buffer_size()
| void R3B::Mille::set_buffer_size |
( |
std::size_t | buffer_size | ) |
|
|
inline |
◆ special()
| void R3B::Mille::special |
( |
const std::vector< std::pair< int, float > > & | special_data | ) |
|
◆ write_to_binary()
| void R3B::Mille::write_to_binary |
( |
| ) |
|
|
private |
◆ write_to_non_binary()
| void R3B::Mille::write_to_non_binary |
( |
| ) |
|
|
private |
◆ buffer_
◆ has_special_done_
| bool R3B::Mille::has_special_done_ = false |
|
private |
◆ is_binary_
| bool R3B::Mille::is_binary_ = true |
|
private |
◆ is_zero_written_
| bool R3B::Mille::is_zero_written_ = false |
|
private |
◆ max_buffer_size_
◆ max_label_size_
| unsigned int R3B::Mille::max_label_size_ = (0xFFFFFFFF - (1U << 31U)) |
|
staticconstexprprivate |
◆ num_of_entries_
| uint64_t R3B::Mille::num_of_entries_ = 0 |
|
private |
◆ output_file_
| std::ofstream R3B::Mille::output_file_ |
|
private |
The documentation for this class was generated from the following files: