sylfy 0.0.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fec1ae6720ecca288865a0c0a8bd253d2f481bf6
4
+ data.tar.gz: ada91cc532a9db9407b92de2faa0ff5d86dbfbc6
5
+ SHA512:
6
+ metadata.gz: 16e08840e6475b057133c99368088934ec175c346ec9f7cd48116dacd1bafd1c053c686305c7cd2e9ea3a1403170daf33ad17ca19b2b134020b0f0a0c11824f9
7
+ data.tar.gz: 83b3160f785c137fa7c76bbefb0b923f9fbfd823a3a1af6592a9996c9a552d65a3d0234b1708711b3c11400f07d9af8b46eda7d3b845e742fc5c78df0785552b
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ sylfy
2
+ =====
data/lib/sylfy/math.rb ADDED
@@ -0,0 +1,24 @@
1
+ #
2
+ # UniSysDB library in Ruby
3
+ # Copyright (C) 2012
4
+ #
5
+ # author: Natapol Pornputtapong <natapol@chalmers.se>
6
+ #
7
+ # Documentation: Natapol Pornputtapong (RDoc'd and embellished by William Webber)
8
+ #
9
+
10
+ module Sylfy
11
+
12
+ module Mathf
13
+
14
+ def self.lnfactorial(n)
15
+ return GSL::Sf::lngamma(n+1)
16
+ end
17
+
18
+ def self.hypergeomatrix_test(nn, m, n, k)
19
+ log_h = lnfactorial(m) - lnfactorial(k) - lnfactorial(m-k) + lnfactorial(nn-m) - lnfactorial(n-k) - lnfactorial(nn-m-n+k) - lnfactorial(nn) + lnfactorial(n) + lnfactorial(nn-n)
20
+ return (Math::E ** log_h)
21
+ end
22
+
23
+ end
24
+ end
@@ -0,0 +1,12 @@
1
+ #
2
+ # UniSysDB library in Ruby
3
+ # Copyright (C) 2012
4
+ #
5
+ # author: Natapol Pornputtapong <natapol.por@gmail.com>
6
+ #
7
+ # Documentation: Natapol Pornputtapong (RDoc'd and embellished by William Webber)
8
+ #
9
+
10
+ module Sylfy
11
+ VERSION = "0.0.1"
12
+ end
data/lib/sylfy.rb ADDED
@@ -0,0 +1,43 @@
1
+ #
2
+ # UniSysDB library in Ruby
3
+ # Copyright (C) 2012
4
+ #
5
+ # author: Natapol Pornputtapong <natapol@chalmers.se>
6
+ #
7
+ # Documentation: Natapol Pornputtapong (RDoc'd and embellished by William Webber)
8
+ #
9
+
10
+ # raise "Please, use ruby 1.9.0 or later." if RUBY_VERSION < "1.9.0"
11
+
12
+ # == Overview
13
+ #
14
+ #
15
+ #
16
+ # == Introduction
17
+ #
18
+ #
19
+ #
20
+ # == Queries
21
+ #
22
+ #
23
+ #
24
+ # === Environmental Variables
25
+ #
26
+ #
27
+ #
28
+ # === Parameters
29
+ #
30
+ #
31
+
32
+ $: << File.join(File.expand_path(File.dirname(__FILE__)))
33
+
34
+ require 'gsl'
35
+
36
+
37
+
38
+ require 'sylfy/math'
39
+
40
+ module Sylfy
41
+
42
+
43
+ end
data/sylfy.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "sylfy/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'sylfy'
7
+ s.version = Sylfy::VERSION
8
+ s.date = '2010-04-28'
9
+ s.platform = Gem::Platform::RUBY
10
+
11
+ s.summary = ""
12
+ s.description = "A simple hello world gem"
13
+ s.authors = ["Natapol Pornputtapong"]
14
+ s.email = 'natapol.por@gmail.com'
15
+
16
+ s.homepage = 'http://rubygems.org/gems/hola'
17
+ s.license = 'GPL'
18
+
19
+ s.rubyforge_project = "neography"
20
+
21
+ s.files = `git ls-files`.split("\n")
22
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
23
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
24
+ s.require_paths = ["lib"]
25
+
26
+ s.add_dependency "gsl", ">= 1.15.3"
27
+
28
+ # s.add_development_dependency "rspec", ">= 2.11"
29
+ # s.add_development_dependency "net-http-spy", "0.2.1"
30
+ # s.add_development_dependency "rake", ">= 0.8.7"
31
+ # s.add_development_dependency "coveralls"
32
+ # s.add_dependency "httpclient", ">= 2.3.3"
33
+ # s.add_dependency "rake", ">= 0.8.7"
34
+ # s.add_dependency "json", ">= 1.7.7"
35
+ # s.add_dependency "os", ">= 0.9.6"
36
+ # s.add_dependency "rubyzip", ">= 0.9.7"
37
+ # s.add_dependency "multi_json", ">= 1.3.2"
38
+ end
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sylfy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Natapol Pornputtapong
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2010-04-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: gsl
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.15.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.15.3
27
+ description: A simple hello world gem
28
+ email: natapol.por@gmail.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - README.md
34
+ - lib/sylfy.rb
35
+ - lib/sylfy/math.rb
36
+ - lib/sylfy/version.rb
37
+ - sylfy.gemspec
38
+ homepage: http://rubygems.org/gems/hola
39
+ licenses:
40
+ - GPL
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ requirements: []
57
+ rubyforge_project: neography
58
+ rubygems_version: 2.0.3
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: ''
62
+ test_files: []