normalize
From DavinciWiki
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Source Supported Under Version: > 1.22
Description Normalizes matrix - rescales values so that the minimum is zero and the maximum is one
Arguments and Return Values Parameters: A numeric array Return Value: A normalized array of the same dimensions
Usage Syntax: normalize(X) Note that since this function only takes the minimum and maximum elements, it is highly susceptible to outliers. When normalize() is entered without any arguments, it prints its description, as shown below.
Examples dv> normalize() Returns normalized version of input array - rescales so that the minimum value is zero and the maximum value is one S.Marshall 03-24-2009 0 dv> a = create(4, 5, start=1) 4x5x1 array of int, bsq format [80 bytes] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 dv> normalize(a) 4x5x1 array of float, bsq format [80 bytes] 0.00000000000000 0.0526315793395042 0.105263158679008 0.157894730567932 0.210526317358017 0.263157904148102 0.315789461135864 0.368421047925949 0.421052634716034 0.473684221506119 0.526315808296204 0.578947365283966 0.631578922271729 0.684210538864136 0.736842095851898 0.789473712444305 0.842105269432068 0.894736826419830 0.947368443012238 1.00000000000000 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Library Changes Created On: 11-18-2009 |