Here you can find the source of minMaxNormalize(double min, double max, double value)
Parameter | Description |
---|---|
min | a parameter |
max | a parameter |
value | a parameter |
static public double minMaxNormalize(double min, double max, double value)
//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); } }