entropy 0.0.2 → 0.0.3

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/README.txt CHANGED
@@ -27,7 +27,10 @@ a matrix to the same define_distance.
27
27
 
28
28
  The example files show a basic usage of the classes.
29
29
 
30
- NOTE: requires ruby >= 1.9
30
+ NOTE: requires ruby >= 1.9.x
31
+
32
+ Feel free to write me: rubygems@hiraedd.com or twitter @hiraedd
33
+ if you have any question or suggestion.
31
34
 
32
35
  == Copyright
33
36
 
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.email = ["hiraedd@hiraedd.com"]
10
10
  s.homepage = "https://github.com/hiraedd/entropy_gem"
11
11
  s.summary = %q{Computes the entropy of a finite probability space}
12
- s.description = %q{This little gem calculates the entropy and ( the cardinality) of a finite probability space, defined by a probability vector; and of a finite probability metric space, defined by a probability vector and metric function.}
12
+ s.description = %q{This little gem calculates the entropy and ( the cardinality) of a finite probability space, defined by a probability vector; and of a finite probability metric space, defined by a probability vector and metric function. Requires ruby 1.9.x}
13
13
 
14
14
  s.rubyforge_project = "entropy"
15
15
 
@@ -1,6 +1,8 @@
1
1
  require 'entropy'
2
2
  require 'pp'
3
3
 
4
+ # note: require ruby 1.9.x
5
+
4
6
  obj = Entropy::ProbabilityMetricSpace.new
5
7
  obj.add_stream("000000000")
6
8
  obj.define_distance {|i, j| Math.sqrt(i*i + j*j) }
@@ -1,6 +1,8 @@
1
1
  require 'entropy'
2
2
  require 'pp'
3
3
 
4
+ # note: require ruby 1.9.x
5
+
4
6
  obj = Entropy::ProbabilitySpace.new
5
7
  obj.add_stream("000000000")
6
8
  pp obj.prob_space # [1.0]
@@ -1,3 +1,3 @@
1
1
  module Entropy
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entropy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - hiraedd
@@ -18,7 +18,7 @@ cert_chain: []
18
18
  date: 2011-09-27 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
- description: This little gem calculates the entropy and ( the cardinality) of a finite probability space, defined by a probability vector; and of a finite probability metric space, defined by a probability vector and metric function.
21
+ description: This little gem calculates the entropy and ( the cardinality) of a finite probability space, defined by a probability vector; and of a finite probability metric space, defined by a probability vector and metric function. Requires ruby 1.9.x
22
22
  email:
23
23
  - hiraedd@hiraedd.com
24
24
  executables: []