<put algortithm description here>
processing.runalg('r:kolmogrovsmirnovtest', layer, field, r_console_output)