|
1 | 1 | module CompSci
|
2 | 2 | module Fit
|
3 |
| - def self.constant: (Array[Numeric] xs, Array[Numeric] ys) -> |
4 |
| - Array[Numeric] |
5 |
| - def self.best: (Array[Numeric] xs, Array[Numeric] ys) -> Array[untyped] |
6 |
| - def self.sigma: (Enumerable enum) ?{ (?) -> Numeric } -> Numeric |
7 |
| - def self.error: (untyped xys) { (untyped) -> untyped } -> untyped |
8 |
| - def self.logarithmic: (untyped xs, untyped ys) -> ::Array[untyped] |
9 |
| - def self.linear: (untyped xs, untyped ys) -> ::Array[untyped] |
10 |
| - def self.exponential: (untyped xs, untyped ys) -> ::Array[untyped] |
11 |
| - def self.power: (untyped xs, untyped ys) -> ::Array[untyped] |
12 |
| - def self.predict: (untyped model, untyped a, untyped b, untyped x) -> untyped |
| 3 | + def self.constant: (Array[Float | Integer] xs, |
| 4 | + Array[Float | Integer] ys) -> [Float, (Float | Integer)] |
| 5 | + def self.best: (Array[Float | Integer] xs, |
| 6 | + Array[Float | Integer] ys) -> Array[Float | Symbol] |
| 7 | + |
| 8 | + def self.sigma: (Array[Float | Integer] enum) ?{ (untyped) -> untyped } -> Float |
| 9 | + | (Array[[Float | Integer, Float | Integer]] enum) ?{ (untyped) -> untyped } -> Float |
| 10 | + | (Array[Array[Float | Integer]] enum) ?{ (untyped) -> untyped } -> Float |
| 11 | + | (Array[untyped] enum) ?{ (untyped) -> untyped } -> Float |
| 12 | + |
| 13 | + def self.error: (Array[Float | Integer] xys) { (untyped) -> untyped } -> Float |
| 14 | + | (Array[[Float | Integer, Float | Integer]] xys) { (untyped) -> untyped } -> Float |
| 15 | + | (Array[Array[Float | Integer]] xys) { (untyped) -> untyped } -> Float |
| 16 | + | (Array[untyped] xys) { (untyped) -> untyped } -> Float |
| 17 | + |
| 18 | + def self.logarithmic: (Array[Float | Integer] xs, Array[Float | Integer] ys) -> [Float, Float, Float] |
| 19 | + |
| 20 | + def self.linear: (Array[Float | Integer] xs, Array[Float | Integer] ys) -> [Float, Float, Float] |
| 21 | + |
| 22 | + def self.exponential: (Array[Float | Integer] xs, Array[Float | Integer] ys) -> [Float, Float, Float] |
| 23 | + |
| 24 | + def self.power: (Array[Float | Integer] xs, Array[Float | Integer] ys) -> [Float, Float, Float] |
| 25 | + |
| 26 | + def self.predict: (Symbol model, Float a, Float b, (Float | Integer) x) -> Float |
13 | 27 | end
|
14 | 28 | end
|
0 commit comments