Skip to content

Initial pre-release

Latest
Compare
Choose a tag to compare
@Lucca-mito Lucca-mito released this 05 Jul 03:43
· 47 commits to main since this release
9e488fe

This is an initial pre-release version of Swift Science. It contains:

  • Three probability distributions types. All three fully embrace generics to let you strike your own balance between precision and performance. Sample random values from them and compute distribution statistics/probabilities.
    • Normal
    • Bernoulli
    • Poisson
  • Fourteen probability distribution protocols, paving the way for many more distributions to be added in the future. These protocols also allow clients to more easily define their own custom distributions.
  • Methods to compute the sum, mean, sample variance, and population variance of any Collection for which these statistics are defined; even for complex numbers.
  • A few mathematical utilities.
  • And, of course, documentation built using DocC.

Try it out!