d3 v5 api arrays

Statistics基本的统计函数
d3.mincompute the minimum value in an array.
d3.maxcompute the maximum value in an array.
d3.extentcompute the minimum and maximum value in an array.
d3.sumcompute the sum of an array of numbers.
d3.meancompute the arithmetic mean of an array of numbers.
d3.mediancompute the median of an array of numbers (the 0.5 quantile).
d3.quantilecompute a quantile for a sorted array of numbers.
d3.variancecompute the variance of an array of numbers.
d3.deviationcompute the standard deviation of an array of numbers.
Search查询具体的元素
d3.scanlinear search for an element using a comparator.
d3.bisectbinary search for a value in a sorted array.
d3.bisectRightbinary search for a value in a sorted array.
d3.bisectLeftbinary search for a value in a sorted array.
d3.bisectorbisect using an accessor or comparator.
bisector.leftbisectLeft, with the given comparator.
bisector.rightbisectRight, with the given comparator.
d3.ascendingcompute the natural order of two values.
d3.descendingcompute the natural order of two values.
Transformations变换数组生成新的数组
d3.crosscompute the Cartesian product of two arrays.
d3.mergemerge multiple arrays into one array.
d3.pairscreate an array of adjacent pairs of elements.
d3.permutereorder an array of elements according to an array of indexes.
d3.shufflerandomize the order of an array.
d3.ticksgenerate representative values from a numeric interval.
d3.tickIncrementgenerate representative values from a numeric interval.
d3.tickStepgenerate representative values from a numeric interval.
d3.rangegenerate a range of numeric values.
d3.transposetranspose an array of arrays.
d3.ziptranspose a variable number of arrays.
Histograms
d3.histogramcreate a new histogram generator.
histogramcompute the histogram for the given array of samples.
histogram.valuespecify a value accessor for each sample.
histogram.domainspecify the interval of observable values.
histogram.thresholdsspecify how values are divided into bins.
d3.thresholdFreedmanDiaconisthe Freedman–Diaconis binning rule.
d3.thresholdScottScott’s normal reference binning rule.
d3.thresholdSturgesSturges’ binning formula.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值