changed a variable name

changed the variable's name which holds the number of samples per axis to samples_per_direction