Files
news.gitea.happylizard.me/bin/gems/facets-3.1.0/lib/standard/facets/math/amd.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

18 lines
359 B
Ruby

require 'facets/math/rmd'
require 'facets/math/mean'
module Math
# The average absolute difference of two independent values drawn
# from the sample. Equal to the RMD * mean.
def self.amd(array)
rmd(array) * mean(array)
end
class << self
alias_method :absolute_mean_difference, :amd
#alias_method :md, :mean_difference
end
end