Chemometrics standard functions