1
0
mirror of synced 2024-11-15 02:37:40 +01:00

create arithmetic specific delimiter options

This commit is contained in:
d98762625 2018-05-15 14:59:28 +01:00
parent 6ddc1b1c9c
commit 3bbfc130d4
8 changed files with 19 additions and 14 deletions

View File

@ -31,6 +31,11 @@ export const WORD_DELIM_OPTIONS = ["Line feed", "CRLF", "Forward slash", "Backsl
*/
export const INPUT_DELIM_OPTIONS = ["Line feed", "CRLF", "Space", "Comma", "Semi-colon", "Colon", "Nothing (separate chars)"];
/**
* Arithmetic sequence delimiters
*/
export const ARITHMETIC_DELIM_OPTIONS = ["Line feed", "Space", "Comma", "Semi-colon", "Colon", "CRLF"];
/**
* Split delimiters.
*/

View File

@ -8,7 +8,7 @@
import BigNumber from "bignumber.js";
import Operation from "../Operation";
import { div, createNumArray } from "../lib/Arithmetic";
import { DELIM_OPTIONS } from "../lib/Delim";
import { ARITHMETIC_DELIM_OPTIONS } from "../lib/Delim";
/**
@ -31,7 +31,7 @@ class Divide extends Operation {
{
"name": "Delimiter",
"type": "option",
"value": DELIM_OPTIONS,
"value": ARITHMETIC_DELIM_OPTIONS,
}
];
}

View File

@ -7,7 +7,7 @@
import Operation from "../Operation";
import { mean, createNumArray } from "../lib/Arithmetic";
import { DELIM_OPTIONS } from "../lib/Delim";
import { ARITHMETIC_DELIM_OPTIONS } from "../lib/Delim";
import BigNumber from "bignumber.js";
/**
@ -30,7 +30,7 @@ class Mean extends Operation {
{
"name": "Delimiter",
"type": "option",
"value": DELIM_OPTIONS,
"value": ARITHMETIC_DELIM_OPTIONS,
}
];
}

View File

@ -8,7 +8,7 @@
import BigNumber from "bignumber.js";
import Operation from "../Operation";
import { median, createNumArray } from "../lib/Arithmetic";
import { DELIM_OPTIONS } from "../lib/Delim";
import { ARITHMETIC_DELIM_OPTIONS } from "../lib/Delim";
/**
* Median operation
@ -30,7 +30,7 @@ class Median extends Operation {
{
"name": "Delimiter",
"type": "option",
"value": DELIM_OPTIONS,
"value": ARITHMETIC_DELIM_OPTIONS,
}
];
}

View File

@ -8,7 +8,7 @@
import BigNumber from "bignumber.js";
import Operation from "../Operation";
import { multi, createNumArray } from "../lib/Arithmetic";
import { DELIM_OPTIONS } from "../lib/Delim";
import { ARITHMETIC_DELIM_OPTIONS } from "../lib/Delim";
/**
@ -31,7 +31,7 @@ class Multiply extends Operation {
{
"name": "Delimiter",
"type": "option",
"value": DELIM_OPTIONS,
"value": ARITHMETIC_DELIM_OPTIONS,
}
];
}

View File

@ -8,7 +8,7 @@
import BigNumber from "bignumber.js";
import Operation from "../Operation";
import { stdDev, createNumArray } from "../lib/Arithmetic";
import { DELIM_OPTIONS } from "../lib/Delim";
import { ARITHMETIC_DELIM_OPTIONS } from "../lib/Delim";
/**
@ -31,7 +31,7 @@ class StandardDeviation extends Operation {
{
"name": "Delimiter",
"type": "option",
"value": DELIM_OPTIONS,
"value": ARITHMETIC_DELIM_OPTIONS,
}
];
}

View File

@ -8,7 +8,7 @@
import BigNumber from "bignumber.js";
import Operation from "../Operation";
import { sub, createNumArray } from "../lib/Arithmetic";
import { DELIM_OPTIONS } from "../lib/Delim";
import { ARITHMETIC_DELIM_OPTIONS } from "../lib/Delim";
/**
@ -31,7 +31,7 @@ class Subtract extends Operation {
{
"name": "Delimiter",
"type": "option",
"value": DELIM_OPTIONS,
"value": ARITHMETIC_DELIM_OPTIONS,
}
];
}

View File

@ -7,7 +7,7 @@
import BigNumber from "bignumber.js";
import Operation from "../Operation";
import { sum, createNumArray } from "../lib/Arithmetic";
import { DELIM_OPTIONS } from "../lib/Delim";
import { ARITHMETIC_DELIM_OPTIONS } from "../lib/Delim";
/**
@ -30,7 +30,7 @@ class Sum extends Operation {
{
"name": "Delimiter",
"type": "option",
"value": DELIM_OPTIONS,
"value": ARITHMETIC_DELIM_OPTIONS,
}
];
}