Last active
March 25, 2016 19:51
-
-
Save klgraham/25f4c313268ec2535791 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol Stochastic { | |
// the type of value stored in the distribution | |
associatedtype ValueType | |
// Sample a single value from the distribution | |
func get() -> ValueType | |
// Sample n values from the distribution | |
func sample(n: Int) -> [ValueType] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment