Skip to main content

AVxcelerate Simulation Framework 2025 R2

gt_base_evaluator

Last update: 16.07.2025
1
5
6#pragma once
7
8#include "core/kpi/i_evaluator/i_evaluator.h"
9#include <osi_groundtruth.pb.h>
10#include <vector>
11
17{
18
23namespace evaluator
24{
25
132class GtBaseEvaluator : public core::IEvaluator<osi3::GroundTruth>
133{
134 public:
136 virtual ~GtBaseEvaluator() = default;
137
141 void Init();
142
146 void Reset();
147
151 void Evaluate();
152
157 void AddKpi(std::unique_ptr<core::kpi::IKpi<osi3::GroundTruth>> kpi) override;
158
163 core::kpi::KpiMessage GetKpiMessage() const;
164
169 void SetInput(const osi3::GroundTruth& ground_truth);
170
171 private:
174 std::vector<std::unique_ptr<core::kpi::IKpi<osi3::GroundTruth>>> kpis_;
175
177 osi3::GroundTruth ground_truth_;
178
180 core::kpi::KpiMessage kpi_message_{};
181};
182
183} // namespace evaluator
184} // namespace simulation_framework
Represents core KPI calculation logic.
Definition i_kpi.h:39
This is the implementation of IEvaluator interface and provides users ability to evaluate KPIs that a...
core::kpi::KpiMessage GetKpiMessage() const
void AddKpi(std::unique_ptr< core::kpi::IKpi< osi3::GroundTruth > > kpi) override
void SetInput(const osi3::GroundTruth &ground_truth)
The namespace containing evaluator implementations.
The namespace for kpi definition and corresponding APIs under namespace simulation_framework::evaluat...
The top namespace for simulation framework.

Connect with Ansys