Modified to construct sample vectors from more than one field
modified to accept single value Real fields