Java Number Min Value minMaxNormalize(double min, double max, double value)

Here you can find the source of minMaxNormalize(double min, double max, double value)

Description

normalize a target value by using min-max normalization (values are scaled in 0 to 1)

License

Open Source License

Parameter

Parameter Description
min a parameter
max a parameter
value a parameter

Declaration

static public double minMaxNormalize(double min, double max,
        double value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*  w  w w. ja  va2 s.  com*/
     * normalize a target value by using min-max normalization (values are scaled in 0 to 1)
     * @param min
     * @param max
     * @param value
     * @return
     */
    static public double minMaxNormalize(double min, double max,
            double value) {
        return (value - min) / (max - min);
    }
}

Related

  1. minmax(int min, int max, int now)
  2. minMax(int val, int min, int max)
  3. minMax(int value, int min, int max)
  4. minMax(long x, long y, boolean max)
  5. minMaxInt(Long i1, String s, boolean max)
  6. minNot0(double i1, double i2)
  7. minNotMinus1(int i1, int i2)
  8. minOfThree(final long a, final long b, final long c)
  9. minP(int a, long b)