Gets the value associated with the given key. If the key does not exist, the value is interpolated between the two nearest values.