“Normalizar a função” Respostas de código

Normalizar a função

double Normalize(double val, double valmin, double valmax, double min, double max) 
{
    return (((val - valmin) / (valmax - valmin)) * (max - min)) + min;
}
Confused Chicken

normalizar

To divide each of the components of a normal by the square root of the sum of their squares. Then, if the normal is thought of as a vector from the origin to the point (nx', ny', nx'), this vector has unit length:

nx' = nx/factor
ny' = ny/factor
nz' = nz/factor
Faithful Flatworm

Respostas semelhantes a “Normalizar a função”

Perguntas semelhantes a “Normalizar a função”

Mais respostas relacionadas para “Normalizar a função” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código