Sha256: edf8ad0b47f0f7507c0306507dd7dd86f35032cfd9c8c7e26d335288a5f5e7b4

Contents?: true

Size: 262 Bytes

Versions: 1

Compression:

Stored size: 262 Bytes

Contents

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

      def value
        ((@mean - @lsl) / (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_lower.rb