PedrelliLuca / ScalarField

A TopDown RPG Game, where magic works by interacting with the environment.
4 stars 0 forks source link

EQ-Test for Temperature #48

Closed PedrelliLuca closed 1 year ago

PedrelliLuca commented 1 year ago

By using the following formula for scoring:

const auto deltaTemperature = midComfort - otherThermoC->GetTemperature();

we get the following if Linear is set as Scoring Equation option:

scoreFormula

PedrelliLuca commented 1 year ago

To eliminate the sign from the Relative scenario, I changed the formula so that it takes the absolute value of the difference. The result, with Inverse Linear Scoring Equation, is:

absDelta

PedrelliLuca commented 1 year ago

In the Absolute Temperature case, the temperature of the context doesn't matter. The only thing that matters here is the value of the temperature on the Query Instances:

absTemp

PedrelliLuca commented 1 year ago

This is how the EQ-Test looks after adding the distance to the equation. Further adjustments will be made once the BT of the AI will be edited to use this EQ.

image