29template <
typename FloatType>
35template <
typename FloatType>
43template <
typename FloatType>
47 data.resize (
static_cast<int> (getRequiredBufferSize (
numPointsToUse)));
58 data.getReference (
static_cast<int> (i)) = value;
64template <
typename FloatType>
67 auto guardIndex =
static_cast<int> (getGuardIndex());
71template <
typename FloatType>
97template <
typename FloatType>
99 FloatType minInputValue,
100 FloatType maxInputValue,
104 jassert (maxInputValue > minInputValue);
126template <
typename FloatType>
131 auto absX = std::abs (x);
132 auto absY = std::abs (y);
133 auto absDiff = std::abs (x - y);
Class for efficiently approximating expensive arithmetic operations.
void initialise(const std::function< FloatType(size_t)> &functionToApproximate, size_t numPointsToUse)
Initialises or changes the parameters of a LookupTable object.
LookupTable()
Creates an uninitialised LookupTable object.
constexpr Type jmap(Type value0To1, Type targetRangeMin, Type targetRangeMax)
Remaps a normalised value (between 0 and 1) to a target range.
constexpr Type jmax(Type a, Type b)
Returns the larger of two values.
Type jlimit(Type lowerLimit, Type upperLimit, Type valueToConstrain) noexcept
Constrains a value to keep it within a given range.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...