Skip to content

Commit

Permalink
Add description and remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Apr 6, 2016
1 parent ec15807 commit fbac895
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Fills null values using a defined fit function

Argument | Accepts | Description
--- | --- | ---
mode | *string* | *no help available*
mode | *string* | The algorithm to use for fitting the series to the target. One of: average, nearest, none, scale

#### .hide()
Hide the series by default
Expand Down
5 changes: 0 additions & 5 deletions fit_functions/average.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ var _ = require('lodash');

module.exports = function (dataTuples, targetTuples) {

console.log(dataTuples);

// Phase 1: Downsample
// We nessecarily won't well match the dataSource here as we don't know how much data
// they had when creating their own average
Expand Down Expand Up @@ -48,10 +46,7 @@ module.exports = function (dataTuples, targetTuples) {
if (isNaN(resultValues[i])) {
if (i === 0) {
// If our first number is NaN, intialize from dataTuples;
console.log('here');
console.log(dataTuples);
previousRealNumber = dataTuples[0][1];
console.log('there');
}
naNCount++;
} else {
Expand Down
3 changes: 2 additions & 1 deletion series_functions/fit.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ module.exports = new Chainable('fit', {
},
{
name: 'mode',
types: ['string']
types: ['string'],
help: 'The algorithm to use for fitting the series to the target. One of: ' + _.keys(fitFunctions).join(', ')
}
],
help: 'Fills null values using a defined fit function',
Expand Down

0 comments on commit fbac895

Please sign in to comment.