linefit 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +9 -0
- data/LICENSE +1 -1
- data/lib/linefit.rb +1 -1
- metadata +9 -9
data/CHANGELOG
CHANGED
data/LICENSE
CHANGED
@@ -4,4 +4,4 @@ Distributed under the user's choice of the {GPL Version 2}[http://www.gnu.org/li
|
|
4
4
|
(see COPYING for details) or the {Ruby software license}[http://www.ruby-lang.org/en/LICENSE.txt] by
|
5
5
|
Eric Cline.
|
6
6
|
|
7
|
-
Please email
|
7
|
+
Please email Eric[mailto:escline@gmail.com] with any questions.
|
data/lib/linefit.rb
CHANGED
@@ -438,7 +438,7 @@ private
|
|
438
438
|
puts "At least two weights must be nonzero!" unless @hush
|
439
439
|
return FALSE
|
440
440
|
end
|
441
|
-
factor = weights.length / sumw
|
441
|
+
factor = weights.length / sumw
|
442
442
|
weights.collect! {|weight| weight * factor}
|
443
443
|
@weight = weights
|
444
444
|
return TRUE
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linefit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 3
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Eric Cline
|
@@ -16,12 +16,12 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2012-03-23 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|
23
23
|
description: LineFit does weighted or unweighted least-squares line fitting to two-dimensional data (y = a + b * x). (Linear Regression)
|
24
|
-
email: escline+
|
24
|
+
email: escline+github@gmail.com
|
25
25
|
executables: []
|
26
26
|
|
27
27
|
extensions: []
|
@@ -35,7 +35,7 @@ files:
|
|
35
35
|
- LICENSE
|
36
36
|
- CHANGELOG
|
37
37
|
has_rdoc: true
|
38
|
-
homepage: http://
|
38
|
+
homepage: http://rubygems.org/gems/linefit
|
39
39
|
licenses: []
|
40
40
|
|
41
41
|
post_install_message:
|
@@ -63,8 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: "0"
|
64
64
|
requirements: []
|
65
65
|
|
66
|
-
rubyforge_project:
|
67
|
-
rubygems_version: 1.
|
66
|
+
rubyforge_project:
|
67
|
+
rubygems_version: 1.6.2
|
68
68
|
signing_key:
|
69
69
|
specification_version: 3
|
70
70
|
summary: LineFit is a linear regression math class.
|