scale Interface

public interface scale

Interface to the scale_real_real() and scale_real_int() functions.

Calls

interface~~scale~~CallsGraph interface~scale scale proc~scale_real_int scale_real_int interface~scale->proc~scale_real_int proc~scale_real_real scale_real_real interface~scale->proc~scale_real_real proc~scale_real_int->proc~scale_real_real

Module Procedures

private pure function scale_real_real(real_array, a, b) result(real_scaled_array)

Normalize the input real array to the range [0, 1]

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), dimension(:) :: real_array
real(kind=wp), intent(in) :: a
real(kind=wp), intent(in) :: b

Return Value real(kind=wp), dimension(size(real_array))

private pure function scale_real_int(real_array, a, b) result(int_scaled_array)

Scale the input real array to the integer RGB range [a, b]

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), dimension(:) :: real_array
integer, intent(in) :: a
integer, intent(in) :: b

Return Value integer, dimension(size(real_array))