# What's the difference between LookupTable and LookupTableTransform?

**URL:** <https://forum.juce.com/t/whats-the-difference-between-lookuptable-and-lookuptabletransform/57576>\
**Category:** General JUCE discussion\
**Created:** [August 25, 2023, 8:42pm UTC](https://forum.juce.com/t/whats-the-difference-between-lookuptable-and-lookuptabletransform/57576 "2023-08-25T20:42:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [August 25, 2023, 8:42pm UTC](https://forum.juce.com/t/whats-the-difference-between-lookuptable-and-lookuptabletransform/57576/1 "2023-08-25T20:42:01Z")

</div>

LookupTable:

> Class for efficiently approximating expensive arithmetic operations.
> 
> The approximation is based on linear interpolation between pre-calculated values. The approximated function should be passed as a callable object to the constructor along with the number of data points to be pre-calculated. The accuracy of the approximation can be increased by using more points at the cost of a larger memory footprint.
> 
> Consider using [LookupTableTransform](https://docs.juce.com/master/classdsp_1_1LookupTableTransform.html) as an easy-to-use alternative.

LookupTableTransform:

> Class for approximating expensive arithmetic operations.
> 
> Once initialised, this class can be used just like the function it approximates via operator().

Why should I consider LookupTableTransform as an alternative? What does it do better?
