Skip to content

Commit 417b2a9

Browse files
committed
add sig/fit.rbs
1 parent d30bede commit 417b2a9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Steepfile

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ target :lib do
99
check "lib/compsci/collatz.rb"
1010
check "lib/compsci/elo.rb"
1111
check "lib/compsci/fibonacci.rb"
12+
check "lib/compsci/fit.rb"
1213

1314
# library "pathname" # Standard libraries
1415
# library "strong_json" # Gems

sig/fit.rbs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module CompSci
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
13+
end
14+
end

0 commit comments

Comments
 (0)