add type for filled samples & beta distribution
This commit is contained in:
parent
6a68bfdc3b
commit
5f1188c516
13
f.go
13
f.go
|
@ -31,6 +31,19 @@ func (l Lognormal) Samples() []float64 {
|
|||
return sample.Sample_parallel(sampler, 1_000_000)
|
||||
}
|
||||
|
||||
type Beta struct {
|
||||
a float64
|
||||
b float64
|
||||
}
|
||||
|
||||
type FilledSamples struct {
|
||||
xs []float64
|
||||
}
|
||||
|
||||
func (fs FilledSamples) Samples() []float64 {
|
||||
return fs.xs
|
||||
}
|
||||
|
||||
// Actually, I should look up how do do a) enums in go, b) union types
|
||||
/*type Lognormal struct {
|
||||
low float64
|
||||
|
|
Loading…
Reference in New Issue
Block a user