add type for filled samples & beta distribution

This commit is contained in:
NunoSempere 2024-06-09 22:48:43 +02:00
parent 6a68bfdc3b
commit 5f1188c516

13
f.go
View File

@ -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