binary-breeder
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -5,3 +5,4 @@ { | ||
"license": "MIT", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "lib/binary-breeder.js", | ||
"devDependencies": { | ||
@@ -16,2 +17,3 @@ "chai": "^3.2.0", | ||
"test": "mocha", | ||
"cover": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec", | ||
"test-travis": "node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- -R spec" | ||
@@ -18,0 +20,0 @@ }, |
# binary-breeder | ||
Breeds two strings of binary digits for use in genetic algorithms | ||
Breeds two strings of binary digits and breeds the requested number of offspring. | ||
[![npm](https://img.shields.io/npm/v/binary-breeder.svg)](https://www.npmjs.com/package/binary-breeder) | ||
[![Coverage Status](https://coveralls.io/repos/jhaugh42/binary-breeder/badge.svg?branch=master&service=github)](https://coveralls.io/github/jhaugh42/binary-breeder?branch=master) | ||
[![Build Status](https://travis-ci.org/jhaugh42/binary-breeder.svg?branch=master)](https://travis-ci.org/jhaugh42/binary-breeder) | ||
##Installation | ||
`npm install binary-breeder` | ||
##Dev Setup | ||
``` | ||
npm install -g mocha | ||
npm install -g istanbul | ||
``` | ||
##Unit Tests | ||
``` | ||
npm test | ||
``` | ||
##Coverage | ||
``` | ||
npm run cover | ||
``` | ||
##Usage | ||
```javascript | ||
var reproduce = require('binary-breeder'); | ||
var numOffspring = 5; | ||
var mutationChance = 0.002; | ||
var parentChromosomes = [ | ||
'000011001101100101', | ||
'110010100110110100' | ||
]; | ||
var offspring = reproduce(parentChromosomes, numOffspring, mutationChance); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15137
40