mirror of
https://github.com/RawAccelOfficial/rawaccel.git
synced 2025-05-11 18:36:46 +02:00
make weights work in by component mode
domain weights now applied under inf norm range weights now applied when equal
This commit is contained in:
parent
e9866f27d7
commit
31ffabf6f3
3 changed files with 41 additions and 43 deletions
|
@ -87,4 +87,10 @@ namespace rawaccel {
|
|||
wchar_t device_id[MAX_DEV_ID_LEN] = {};
|
||||
};
|
||||
|
||||
template <typename AccelFunc>
|
||||
inline double apply_weighted(AccelFunc&& f, double x, double w)
|
||||
{
|
||||
return 1 + (f(x) - 1) * w;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue