@icgio/icg-utils 1.9.10 → 1.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/influxdb.js CHANGED
@@ -35,6 +35,7 @@ class Influx {
35
35
  columns: true,
36
36
  comment: '#',
37
37
  skip_empty_lines: true,
38
+ relax_column_count: true,
38
39
  },
39
40
  (err, res) => {
40
41
  if (!err) {
package/lib/utils.js CHANGED
@@ -839,21 +839,3 @@ module.exports.exchange_basecur_curs_converter = (exchange_basecur_curs) => {
839
839
  module.exports.sort_keys = (dict) => {
840
840
  return _.fromPairs(_.sortBy(_.toPairs(dict), (e) => e[0]))
841
841
  }
842
-
843
- module.exports.random_normal_range = (mean, std_dev, a, b) => {
844
- let min = Math.min(a, b)
845
- let max = Math.max(a, b)
846
- let u = 1 - Math.random() // [0,1) -> (0,1]
847
- let v = Math.random()
848
- let z = Math.sqrt(-2.0 * Math.log(u)) * Math.cos(2.0 * Math.PI * v) // Box-Muller Transform
849
- let num = mean + z * std_dev
850
- return Math.max(min, Math.min(max, num))
851
- }
852
-
853
- // module.exports.random_beta_range = (alpha, beta, a, b) => {
854
- // let u = Math.random()
855
- // let v = Math.random()
856
- // let value = Math.pow(u, 1 / alpha) / (Math.pow(u, 1 / alpha) + Math.pow(v, 1 / beta))
857
- // return a + value * (b - a) // Scale result into [a, b] range
858
- // }
859
- // console.log(module.exports.random_beta_range(1, 100, 0.02, 0.03))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-utils",
3
- "version": "1.9.10",
3
+ "version": "1.9.11",
4
4
  "description": "Utils package.",
5
5
  "main": "index.js",
6
6
  "directories": {