项目作者: JulTob

项目描述 :
Analytic tools
高级语言: Ada
项目地址: git://github.com/JulTob/Analysis.git
创建时间: 2019-05-09T14:56:21Z
项目社区:https://github.com/JulTob/Analysis

开源协议:

下载


Analysis

Analytic tools.

Ada Packages:

📏 Error Range


Definition of Numeric type with Error Range.

Allows operations with Numbers with uncertainty.

  1. Number = Base ~ Error
  2. Base ± Error

Operations: + - * / Put() Put_Line()

🤙 Integer Intervals


Definition of Intervals of the type Integer.

Allows operations with Numbers in a range from-to style.

  1. Number = <From~To>
  2. [From,To]

Operations: + - * / and or Put() Put_Line()

  1. 📝 Note: The "and" operator can return an inverted range with the void area if both intervals have no intersection.
  2. This has been chosen to remain as it's on a different level of abstraction where this "loses" sense.
  3. Same way, OR can include intervals of the void area contained in between intervals.
  4. Therefor AND and OR are not equivalent to Intersection nor Union of Interval Sets.
  5. But they can be constructed from the Interval objects and operations.
  6. That's why they were considered fundamental tenough to stay this way.

📊 Bayesian


Bayesian Operations with probability type, and suptypes for Hypothesis and Evidence. Also handy type Ratio, so far a rename of Float.

Allows operations on Bayesian Satistics.

Operations: Put() Put_Line() To_Ratio(N1,N2) Bayesian.Theorem(H,E,E|H) Actualize_Hypothesis(H,E, E|H)
total_Evidence(E|H, E|¬H, H) Likelyhood(E|H, E|¬H, H)

➕ Series


So far is more an example of interface than anything else.
Calculates the series sum from any positive number to another positive number. Default is 1 to input.
Also functionalities for even and odd

Operations: Sum_Interface Sum(from, to) Sum(n) is_Odd(n) is_Even(n)

  1. Angles

Hard definition of pi and Tau
Radians and 360º degrees.

Operations: + To_Radian(Degree) To_Degree(radian) Put()

  1. Fuzzy Logic
  2. _______________
  3. Fuzzy Boolean
  4. Operations: and or not