Now use

1
2
3
4
5
6
 
type Distribution<'a when 'a : comparison> = 
    abstract Sample :'a 
    abstract Support : 'a Set 
    abstract Expectation:('a->float) ->float 

(and can read more about (the new-since-the-book) equality/comparison constraints here if you care:

[link:lorgonblog.spaces.live.com]

[link:blogs.msdn.com]

)

By on 4/28/2010 4:55 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper