|
Formula Student Autonomous Systems
The code for the main driverless system
|
The ZScoreValidator class is responsible for validating cones based on the approximation of z-score of when compared with some thresholds. More...
#include <z_score_validator.hpp>


Public Member Functions | |
| ZScoreValidator (double min_z_score_x, double max_z_score_x, double min_z_score_y, double max_z_score_y) | |
| Construct a new ZScoreValidator object with the specific thresholds. | |
| std::vector< double > | coneValidator (Cluster *cluster, Plane &plane) const override |
| Validates the cluster based on the z-score distribution. | |
| virtual | ~ZScoreValidator ()=default |
| Virtual destructor for ZScoreValidator. | |
Private Attributes | |
| double | _min_z_score_x_ |
| Min z-score on x-axis */. | |
| double | _max_z_score_x_ |
| Max z-score on x-axis */. | |
| double | _min_z_score_y_ |
| Min z-score on y-axis */. | |
| double | _max_z_score_y_ |
| Max z-score on y-axis */. | |
The ZScoreValidator class is responsible for validating cones based on the approximation of z-score of when compared with some thresholds.
A z-score is used to determine how unusual or typical a particular value is within a set of data. It helps in comparing values from different distributions by standardizing them, allowing for meaningful comparisons.
The z-score references the normal distribution, where most values cluster around the mean. Values with z-scores close to zero are near the mean, while values with higher positive or negative z-scores are further from the mean, indicating they are more unusual or extreme. This makes z-scores useful in identifying outliers and understanding data spread.
Definition at line 19 of file z_score_validator.hpp.
| ZScoreValidator::ZScoreValidator | ( | double | min_z_score_x, |
| double | max_z_score_x, | ||
| double | min_z_score_y, | ||
| double | max_z_score_y | ||
| ) |
Construct a new ZScoreValidator object with the specific thresholds.
| min_z_score_x | Min z-score on x-axis |
| max_z_score_x | Max z-score on x-axis |
| min_z_score_y | Min z-score on y-axis |
| max_z_score_y | Max z-score on y-axis |
Definition at line 3 of file z_score_validator.cpp.
|
virtualdefault |
Virtual destructor for ZScoreValidator.
|
overridevirtual |
Validates the cluster based on the z-score distribution.
| cluster | Cluster to be validated |
Implements ConeValidator.
Definition at line 10 of file z_score_validator.cpp.
|
private |
Max z-score on x-axis */.
Definition at line 47 of file z_score_validator.hpp.
|
private |
Max z-score on y-axis */.
Definition at line 49 of file z_score_validator.hpp.
|
private |
Min z-score on x-axis */.
Definition at line 46 of file z_score_validator.hpp.
|
private |
Min z-score on y-axis */.
Definition at line 48 of file z_score_validator.hpp.