Skip to content

Releases: Lucca-mito/swift-science

Initial pre-release

05 Jul 03:43
9e488fe
Compare
Choose a tag to compare

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!