Calculates the mean of the coordinates of a layer starting from a field of the attribute table.
Optional.
Field to use if you want to perform a weighted mean.
Optional.
Unique field on which the calculation of the mean will be made.
processing.runalg('qgis:meancoordinates', points, weight, uid, output)