    

 ## On this page

  

 

 # simulation\_framework::evaluator::PredictiveMinTtcEvaluator Class Reference

 Last update: 16.07.2025 

class [PredictiveMinTtcEvaluator](classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator.xhtml "class PredictiveMinTtcEvaluator") [More...](classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator.xhtml#details)

`#include <<a class="el" href="predictive__min__ttc__evaluator_8h_source.xhtml">predictive_min_ttc_evaluator.h</a>>`

Inheritance diagram for simulation_framework::evaluator::PredictiveMinTtcEvaluator:

![Inheritance graph](/sites/default/files/migrate-content/avxcelerate_simulation_framework_2025_r1_num1/classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator__inherit__graph.png)

\[[legend](graph_legend.xhtml)\]

Collaboration diagram for simulation_framework::evaluator::PredictiveMinTtcEvaluator:

![Collaboration graph](/sites/default/files/migrate-content/avxcelerate_simulation_framework_2025_r1_num1/classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator__coll__graph.png)

\[[legend](graph_legend.xhtml)\]

## <a name="pub-methods"></a>Public Member Functions

<a id="ad053b6beae6e2c424e89c268bc4c8941"></a> **PredictiveMinTtcEvaluator** (const std::string &amp;kpi\_name="predictive\_min\_ttc") void [Init](classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator.xhtml#aad25aefd4cb26ff9697c441d39de2deb) () override void [Reset](classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator.xhtml#a8f78acf7646d8476fdbbdc931fbc3ffe) () override [core::kpi::KpiContent](structsimulation__framework_1_1core_1_1kpi_1_1KpiContent.xhtml) [CalculateKpi](classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator.xhtml#a61532b6f5b953ea646738480fe7f26d8) (const avx\_osi3::GroundTruth &amp;ground\_truth) override <a id="afa04796b1e66b16c1f33ee011530cb90"></a>core::kpi::Type **GetKpiType** () const override ![-](/sites/default/files/migrate-content/avxcelerate_simulation_framework_2025_r1_num1/closed.png) Public Member Functions inherited from [simulation\_framework::core::kpi::IKpi&lt; avx\_osi3::GroundTruth &gt;](classsimulation__framework_1_1core_1_1kpi_1_1IKpi.xhtml)<a id="aeef163c532f5b7b03e685642cb75ccaa"></a>virtual kpi::Type [GetKpiType](classsimulation__framework_1_1core_1_1kpi_1_1IKpi.xhtml#aeef163c532f5b7b03e685642cb75ccaa) () const=0 Return the KPI type, currently three types are possible: kpi::Type::kScalar, The KPI is scalar value with unit kpi::Type::kTimeSeries, The KPI is a time serie kpi::Type::kLog, The KPI is part of a continuous log.   
 <a id="details" name="details"></a>## Detailed Description

class [PredictiveMinTtcEvaluator](classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator.xhtml "class PredictiveMinTtcEvaluator")

Definition of [PredictiveMinTtcEvaluator](classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator.xhtml "class PredictiveMinTtcEvaluator") class to calculate the minimum time to collision. This will store the lowest value of TTC being observed during one simulation run.

class [PredictiveMinTtcEvaluator](classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator.xhtml "class PredictiveMinTtcEvaluator") Definition of [PredictiveMinTtcEvaluator](classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator.xhtml "class PredictiveMinTtcEvaluator") class to calculate the minimum time to collision. This will store the lowest value of TTC being observed during one simulation run.



## Member Function Documentation

<a id="a61532b6f5b953ea646738480fe7f26d8"></a>## [◆ ](#a61532b6f5b953ea646738480fe7f26d8)CalculateKpi()

 [core::kpi::KpiContent](structsimulation__framework_1_1core_1_1kpi_1_1KpiContent.xhtml) simulation\_framework::evaluator::PredictiveMinTtcEvaluator::CalculateKpi  ( const avx\_osi3::GroundTruth &amp;  *input*)   overridevirtual 

Run core logic of KPI calculation

Implements [simulation\_framework::core::kpi::IKpi&lt; avx\_osi3::GroundTruth &gt;](classsimulation__framework_1_1core_1_1kpi_1_1IKpi.xhtml#a614cb6051405e8865257360eefff9ab6).





<a id="aad25aefd4cb26ff9697c441d39de2deb"></a>## [◆ ](#aad25aefd4cb26ff9697c441d39de2deb)Init()

 void simulation\_framework::evaluator::PredictiveMinTtcEvaluator::Init  ( )   overridevirtual 

Initialize the logic

Implements [simulation\_framework::core::kpi::IKpi&lt; avx\_osi3::GroundTruth &gt;](classsimulation__framework_1_1core_1_1kpi_1_1IKpi.xhtml#affa38e79e2d2fe57ac913fa736437fae).





<a id="a8f78acf7646d8476fdbbdc931fbc3ffe"></a>## [◆ ](#a8f78acf7646d8476fdbbdc931fbc3ffe)Reset()

 void simulation\_framework::evaluator::PredictiveMinTtcEvaluator::Reset  ( )   overridevirtual 

Clean up all stored temp data and be ready for next round of new calculation, in case the simulation needs to be restarted

Implements [simulation\_framework::core::kpi::IKpi&lt; avx\_osi3::GroundTruth &gt;](classsimulation__framework_1_1core_1_1kpi_1_1IKpi.xhtml#ad08cdb1d1091c84920a9733a81c752a5).





---

The documentation for this class was generated from the following files:- [predictive\_min\_ttc\_evaluator.h](predictive__min__ttc__evaluator_8h_source.xhtml)
- predictive\_min\_ttc\_evaluator.cpp