statistics.c File Reference Detailed DescriptionImplementation of the functions operating on Tstatistics.
Definition in file statistics.c.
Function Documentation
Initializes a set of statistics.
Definition at line 21 of file statistics.c. References GetTime(), Tstatistics::n_box_reductions, Tstatistics::n_empty_boxes, Tstatistics::n_errors, Tstatistics::n_lost_boxes, Tstatistics::n_max_level, Tstatistics::n_processed_boxes, Tstatistics::n_solution_boxes, Tstatistics::n_splitted_boxes, Tstatistics::n_validated_solution_boxes, Tstatistics::np, Tstatistics::s_diagonal, Tstatistics::s_volume, Tstatistics::t_init, and Tstatistics::volume. Referenced by AtlasAStar(), AtlasBiRRTstar(), AtlasGBF(), AtlasRRT(), AtlasRRTstar(), AtlasTRRT(), BiRRTstar(), cBiRRT(), ccRRT(), ccTRRT(), main(), MPI_SolveCuikSystem(), RRTstar(), SmoothSamples(), and SolveCuikSystem().
Initializes a set of statistics fom another set.
Definition at line 45 of file statistics.c. References Tstatistics::n_box_reductions, Tstatistics::n_empty_boxes, Tstatistics::n_errors, Tstatistics::n_lost_boxes, Tstatistics::n_max_level, Tstatistics::n_processed_boxes, Tstatistics::n_solution_boxes, Tstatistics::n_splitted_boxes, Tstatistics::n_validated_solution_boxes, Tstatistics::s_diagonal, Tstatistics::s_volume, Tstatistics::t_init, and Tstatistics::volume. Referenced by CopyCuikSystem().
Returns the current time. The wayt to get the time is different for single-processor or for multiple-processor environments.
Definition at line 74 of file statistics.c. References Tstatistics::np. Referenced by GetElapsedTime(), InitStatistics(), and LoadCSState().
Returns the time since the statistics where initialized.
Definition at line 92 of file statistics.c. References GetTime(), and Tstatistics::t_init. Referenced by AtlasAStar(), AtlasBiRRTstar(), AtlasGBF(), AtlasRRT(), AtlasRRTstar(), AtlasTRRT(), BiRRTstar(), cBiRRT(), ccRRT(), ccTRRT(), GradientSmooth(), main(), PostProcessBox(), PrintStatistics(), RandomSmooth(), RRTstar(), SaveCSState(), ShortcutSmooth(), and SmoothSamples().
Returns the time at which the statistics where initialized.
Definition at line 100 of file statistics.c. References Tstatistics::t_init.
Sets a new initial time. This is used when re-starting a process after a crash.
Definition at line 109 of file statistics.c. References Tstatistics::t_init. Referenced by LoadCSState().
Sets a new max level. If the given level is below the stored one nothing is done.
Definition at line 117 of file statistics.c. References Tstatistics::n_max_level. Referenced by MPI_SolveCuikSystem(), and SolveCuikSystem().
Increases the number of processed boxes.
Definition at line 126 of file statistics.c. References Tstatistics::n_processed_boxes. Referenced by MPI_SolveCuikSystem(), and SolveCuikSystem().
Increases the number of solution boxes.
Definition at line 134 of file statistics.c. References Tstatistics::n_solution_boxes, Tstatistics::n_validated_solution_boxes, Tstatistics::s_diagonal, and Tstatistics::s_volume. Referenced by PostProcessBox().
Increases the number of empty boxes.
Definition at line 147 of file statistics.c. References Tstatistics::n_empty_boxes. Referenced by PostProcessBox().
Increases the number of splitted boxes.
Definition at line 156 of file statistics.c. References Tstatistics::n_splitted_boxes. Referenced by PostProcessBox().
Increases the number of errors when reducing a boxe.
Definition at line 165 of file statistics.c. References Tstatistics::n_errors. Referenced by PostProcessBox().
Increases the number of lost boxes.
Definition at line 173 of file statistics.c. References Tstatistics::n_lost_boxes. Referenced by MPI_SolveCuikSystem().
Increases the number of reduced boxes.
Definition at line 181 of file statistics.c. References Tstatistics::n_box_reductions. Referenced by ReduceBox().
Gets the number of reduced boxes.
Definition at line 186 of file statistics.c. References Tstatistics::n_box_reductions. Referenced by MPI_TreatBox().
Gets the number of solution boxes.
Definition at line 191 of file statistics.c. References Tstatistics::n_solution_boxes. Referenced by MPI_SolveCuikSystem(), PostProcessBox(), and SolveCuikSystem().
Resets the number of reduced boxes.
Definition at line 196 of file statistics.c. References Tstatistics::n_box_reductions. Referenced by MPI_TreatBox().
Increases the number of reduced boxes.
Definition at line 201 of file statistics.c. References Tstatistics::n_box_reductions. Referenced by MPI_SolveCuikSystem().
Write the statistics sets to a stream that can be stdout. The moment at which the statistics are written is taken as the moment at which the solving process is done.
Definition at line 209 of file statistics.c. References GetElapsedTime(), Tstatistics::n_box_reductions, Tstatistics::n_empty_boxes, Tstatistics::n_errors, Tstatistics::n_lost_boxes, Tstatistics::n_max_level, Tstatistics::n_processed_boxes, Tstatistics::n_solution_boxes, Tstatistics::n_splitted_boxes, Tstatistics::n_validated_solution_boxes, Tstatistics::np, Tstatistics::s_diagonal, Tstatistics::s_volume, and Tstatistics::volume. Referenced by MPI_SolveCuikSystem(), and SolveCuikSystem().
Saves the statistics to a file in binary format. Used to save the internal state of the solver.
Definition at line 260 of file statistics.c. Referenced by SaveCSState().
Loads the statistics from a file in binary format. Used to retrive the internal state of the solver from a .state file.
Definition at line 266 of file statistics.c. Referenced by LoadCSState().
Deletes the statistics structure and frees the allocated memory.
Definition at line 274 of file statistics.c. Referenced by AtlasAStar(), AtlasBiRRTstar(), AtlasGBF(), AtlasRRT(), AtlasRRTstar(), AtlasTRRT(), BiRRTstar(), cBiRRT(), ccRRT(), ccTRRT(), DeleteCuikSystem(), main(), MPI_SolveCuikSystem(), RRTstar(), and SmoothSamples(). |
Follow us!