Method: Statsample::DominanceAnalysis#general_dominance_pairwise
- Defined in:
- lib/statsample/dominanceanalysis.rb
#general_dominance_pairwise(i, j) ⇒ Object
Returns 1 if i gD k, 0 if j gD i and 0.5 if undetermined
237 238 239 240 241 242 243 244 245 246 |
# File 'lib/statsample/dominanceanalysis.rb', line 237 def general_dominance_pairwise(i,j) ga=general_averages if ga[i]>ga[j] 1 elsif ga[i]<ga[j] 0 else 0.5 end end |