zoukankan      html  css  js  c++  java
  • Percentile

    看起来好像是个简单的分位数,其实还是蛮复杂的,各种不同的算法,Excel内的算法也很独特,初中课本上的算法也不一定对。

    就看计算时候的要求了,具体实现我就不再赘述了

        public enum PercentileMethod
        {
            /// <summary>
            ///  http://www.itl.nist.gov/div898/handbook/prc/section2/prc252.htm
            /// </summary>
            Nist = 0,
    
            /// <summary>
            /// http://en.wikipedia.org/wiki/Percentile#Nearest_Rank
            /// </summary>
            Nearest,
    
            /// <summary>
            ///  http://www.itl.nist.gov/div898/handbook/prc/section2/prc252.htm
            /// </summary>
            Excel,
    
            /// <summary>
            ///  http://en.wikipedia.org/wiki/Percentile#Linear_Interpolation_Between_Closest_Ranks
            /// </summary>
            Interpolation
        }
    

      

    http://kwok.io/
  • 相关阅读:
    Redis Cluter
    数据库设计范式
    kvm虚拟化
    架构前端
    集群架构
    初识shell编程
    网络知识
    Linux三剑客
    Linux磁盘管理
    高性能异步爬虫
  • 原文地址:https://www.cnblogs.com/yuzukwok/p/3121502.html
Copyright © 2011-2022 走看看