F
F
ff0xff2018-09-02 14:44:05
Algorithms
ff0xff, 2018-09-02 14:44:05

How to normalize an array in php?

I have a formula to normalize a data vector in the range -1 to 1
The R package has a standard function data.Normalization
n5 - normalization in range <-1,1> ((x-mean)/max(abs(x-mean) ))
but I can't figure out how to program it in php,
does anyone know what the mean is, what should he do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2018-09-02
@ff0xff

mean

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question