Skip to content

Commit

Permalink
modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Sep 25, 2014
1 parent 0f9e946 commit 37a22a5
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 43 deletions.
18 changes: 18 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
This software is released under the MIT license:

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 2 additions & 0 deletions example/chi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var chi = require('../');
console.log(chi.pdf(0.5, 1));
54 changes: 24 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
{
"name" : "chi-squared",
"version" : "0.0.0",
"description" : "characteristic functions for chi-squared distributions",
"main" : "index.js",
"directories" : {
"lib" : ".",
"example" : "example",
"test" : "test"
},
"dependencies" : {
"gamma" : "0.0.x"
},
"repository" : {
"type" : "git",
"url" : "http://github.com/substack/chi-squared.js.git"
},
"keywords" : [
"χ²",
"chi",
"distribution",
"probability",
"mathematics"
],
"author" : {
"name" : "James Halliday",
"email" : "[email protected]",
"url" : "http://substack.net"
},
"license" : "MIT/X11",
"engine" : { "node" : ">=0.4" }
"name" : "chi-squared",
"version" : "0.0.0",
"description" : "characteristic functions for chi-squared distributions",
"main" : "index.js",
"dependencies" : {
"gamma" : "0.0.x"
},
"repository" : {
"type" : "git",
"url" : "http://github.com/substack/chi-squared.js.git"
},
"keywords" : [
"χ²",
"chi",
"distribution",
"probability",
"mathematics"
],
"author" : {
"name" : "James Halliday",
"email" : "[email protected]",
"url" : "http://substack.net"
},
"license" : "MIT"
}
20 changes: 7 additions & 13 deletions README.markdown → readme.markdown
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
chi-squared
===========
# chi-squared

Characteristic functions for the
[chi-squared distribution](http://en.wikipedia.org/wiki/Chi-squared_distribution).

example
=======
# example

```
> var chi = require('chi-squared')
Expand All @@ -15,27 +13,23 @@ example
0.11695769277348175
```

methods
=======
# methods

var chi = require('chi-squared')

chi.pdf(x, k)
-------------
## chi.pdf(x, k)

Compute the probability density function for the parameter `x` under `k` degrees
of freedom.

install
=======
# install

With [npm](http://npmjs.org) do:

```
npm install chi-squared
```

license
=======
# license

MIT/X11
MIT

0 comments on commit 37a22a5

Please sign in to comment.