Sha256: b0ad7906478c41a750d4806342ca6661399910911eb1676f5466406c13cede2f

Contents?: true

Size: 262 Bytes

Versions: 1

Compression:

Stored size: 262 Bytes

Contents

module StatiStica
  module PCA
    class CpUpper
      def initialize(usl:, mean:, sd:)
        @usl = Float(usl)
        @mean = Float(mean)
        @sd = Float(sd)
      end

      def value
        ((@usl - @mean) / (3 * @sd)).abs
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stati_stica-0.2.0 lib/stati_stica/pca/cp_upper.rb