| Algorithm 1. The normalized scoring algorithm. |
| Input: a vector of quality indexes of spinach X |
| Output: a matrix including the normalized weight Z and the normalized score P |
| n=cols(X); ex=mean(X); σ=Stdev(X); σ2=Var(X) |
| for i∈0…n−1 |
| c=mean(Z); s=Stdev(Z); s2=Var(Z) |
|
for i∈0…n−1 return (Z; P) |