mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Add skeleton for utilityAI framework
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
typedef enum
|
||||
{
|
||||
Step,
|
||||
Linear,
|
||||
Polynomial,
|
||||
Logistic,
|
||||
Logit
|
||||
} ResponseCurveType;
|
||||
|
||||
struct ResponseCurve
|
||||
{
|
||||
ResponseCurveType type;
|
||||
float m;
|
||||
float k;
|
||||
float b;
|
||||
float c;
|
||||
float min;
|
||||
float max;
|
||||
};
|
||||
|
||||
float NormalizeInput(float value, float min, float max);
|
||||
float CalculateResponse(float x, ResponseCurve curve);
|
||||
Reference in New Issue
Block a user