0 people like it.

Pipelining example

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
let loadRawStats (fileName : string) =
(body omitted)

let removeOutliers stats =
(body omitted)

let normalize stats =
(body omitted)

let scale stats =
(body omitted)

let transFormStats (fileName : string) = 
    loadRawStats fileName |> removeOutliers |> normalize |> scale
val loadRawStats : fileName:string -> float list

Full name: Script.loadRawStats
val fileName : string
Multiple items
val string : value:'T -> string

Full name: Microsoft.FSharp.Core.Operators.string

--------------------
type string = System.String

Full name: Microsoft.FSharp.Core.string
[for i in 0..1000 -> float(i)]
val removeOutliers : stats:'a -> 'a

Full name: Script.removeOutliers
val stats : 'a
stats
val normalize : stats:'a -> 'a

Full name: Script.normalize
val scale : stats:'a -> 'a

Full name: Script.scale
val transFormStats : fileName:string -> float list

Full name: Script.transFormStats
Raw view Test code New version

More information

Link:http://fssnip.net/4g
Posted:15 years ago
Author:
Tags: