get_closest_fibonacci_number

get_closest_fibonacci_number#

mrinufft.trajectories.maths.fibonacci.get_closest_fibonacci_number(x)[source]#

Provide the closest Fibonacci number.

Parameters:

x (float) – Value to match.

Returns:

Closest number from the Fibonacci sequence.

Return type:

int