uk.ac.starlink.ttools.plot2
Interface Scaler


public interface Scaler

Defines the mapping of an input value to the range 0..1.

Since:
22 Jan 2015
Author:
Mark Taylor

Method Summary
 double scaleValue(double val)
          Scales an input value to the interval 0..1.
 

Method Detail

scaleValue

double scaleValue(double val)
Scales an input value to the interval 0..1. NaN values stay NaN.

Parameters:
val - input data value
Returns:
value in range 0..1 (inclusive), or NaN for NaN input


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.