Tyche alternatives and similar packages
Based on the "Science and Data Analysis" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Tyche or a related project?
Tyche is a small and robust statistical library for the JVM. Many JVM-hosted numerical libraries offer similar functionalities, but they seem to be unnecessarily bloated and they fail to provide straightforward APIs. Instead, Tyche is built from the ground up in accordance to good design principles.
- Discrete & Continuous distributions.
- Foolproof analysis tools.
- Markov chains and lattice walks.
- Simple Random Sampling (SRS) support.
- Extensive documentation and good test coverage.
The library is written in Scala 2.12.0 and was tested last with sbt 0.13.13.
Behold, the power of Tyche:
// In a country in which people only want boys every family continues to // have children until they have a boy. If they have a girl, they have // another child. If they have a boy, they stop. What is the average // amount of kids per family? sealed trait Child object Boy extends Child object Girl extends Child val family = tyche.DiscreteDistribution.uniform(Boy, Girl) .until(_ contains Boy) .map(_.size) println(family.mean) // ~ 2.0
Tyche is published to Maven Central, so you just need to paste this line in you build configuration file:
libraryDependencies += "com.github.neysofu" %% "tyche" % "0.4.3"
How to contribute
Feedback and suggestions are very welcome! I invite you to check for open issues or open a fresh one to discuss around a bug or a feature idea. Please drop me a line at
firstname.lastname@example.org if you wish you contact me.
Bonus points if you submit code!
- Branch off from master and start making your changes.
- Write a test which shows that the code works as expected.
- Please, please write some documentation. One or two lines per entity are enough.
- Send a pull request.
Be sure to check out some great alternatives: