std.train function

Standardization according to the chosen method.