0.0.9 • Published 8 years ago
profile_generator v0.0.9
PROFILE GENERATOR
This package allows creating profiles of a given length according to a selected distribution.
#INPUT
The package uses as input a graph object defined in PHYLOViZ Online as the following:
var input_options = {
profile_length: 4, //default 7
number_of_profiles: 4, //default 10
mean: 3, //default 1
min: 1, //default 1
max: 4, //default 7
distribution: 'cauchy' //default 'norm'
}
#Distributions
poisson
- Poisson distribution
norm
- Normal distribution
cauchy
- Cauchy distribution
bernoully
- Bernoully distribution
#Usage example
var generate_profiles = require('profile_generator');
generate_profiles(input_options, function(output){
console.log(output);
});