X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/fc2ec49c325b99370170789886b4be4f43e16d68..b8e89a384896a4f8ce3e1990a10c88e7164af55c:/documentation/code_VALValue.normalize.html diff --git a/documentation/code_VALValue.normalize.html b/documentation/code_VALValue.normalize.html deleted file mode 100644 index 5cb5aae..0000000 --- a/documentation/code_VALValue.normalize.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - -Value.normalize - - -let rec normalize v = 
-        let n = 2. ** float_of_int (value_macro_to_int Faust_Bits_intin
-        match v with
-        |N i ->        
-            if i > value_macro_to_int Faust_Max_int then 
-              return_N (i - int_of_float (n *. floor (((float_of_int i) +. n/.2.)/.n)))
-            else if i < value_macro_to_int Faust_Min_int then 
-              return_N (i + int_of_float (n *. floor ((n/.2. -. (float_of_int i) -. 1.)/.n)))
-            else return_N i
-        |R f -> 
-            if f > float_of_int (value_macro_to_int Faust_Max_intthen 
-              return_R (f -. (n *. floor ((f +. n/.2.)/.n)))
-            else if f < float_of_int (value_macro_to_int Faust_Min_intthen         
-              return_R (f +. (n *. floor ((n/.2. -. f -. 1.)/.n)))
-            else return_R f
-        |Vec (size, vec) -> make_vector size (fun i -> normalize (vec i))
-        |Zero -> Zero
-        |W -> W
\ No newline at end of file