Sha256: 172891c86057576385aae1dfe9c788e0bcf307ef8e3e6f5bd2334d49505fb741
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
class Byar def self.lower(obs, exp) return nil if exp == 0 return 0 if obs == 0 obs.quo(exp) * (1 - 1.quo(9 * obs) - 1.96.quo(3 * Math.sqrt(obs))) ** 3 end def self.upper(obs, exp) return nil if exp == 0 obs = obs + 1 (obs).quo(exp) * (1 - 1.quo(9 * (obs)) + 1.96.quo(3 * Math.sqrt(obs))) ** 3 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
byar-0.0.1 | lib/byar.rb |