Description Usage Arguments Details Value Examples

View source: R/fcn_qualities.R

The score is computed according to

1 | ```
qualHighest(x, N)
``` |

`x` |
Vector of numeric values (e.g. height of histogram bins) |

`N` |
Length of x (just a precaution currently) |

q = ((N-1) - sum_i( ((N-i-1)*x_i) ) / (N-1)

Scores range from 0 (worst), to 1 (best). E.g. c(0,0,0,16) would yield a score of 1. c(16,0,0,0,0) gives a score of 0.

Quality score in the range of [0,1]

1 2 3 4 5 | ```
qualHighest(c(0,0,0,16), 4) ## 1
qualHighest(c(16,0,0,0), 4) ## 0
qualHighest(c(1,1,1,1), 4) ## 0.5
qualHighest(c(0,16,0,0), 4) ## 1/3
``` |

cbielow/PTXQC documentation built on Sept. 22, 2018, 3:21 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.