Skip to main content
. 2020 Apr 10;9(4):490. doi: 10.3390/plants9040490
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 i0n−1
  zi=xiexσ/n
c=mean(Z); s=Stdev(Z); s2=Var(Z)
f(x)=12πse(xc)22s2
for i0n−1
  pi=zif(x)dx
return (Z; P)