code: public Matrix4d weightedSuperpose(Point3d[] fixed, Point3d[] moved, double[] weight) {
  		set(moved, fixed, weight);
  		getRotationMatrix();
  		if (!centered) {
  			calcTransformation();
  		} else {
  			transformation.set(rotmat);
  		}
  		return transformation;
  	}
docs: Weighted superposition.
  
  @param fixed
  @param moved
  @param weight
  array of weigths for each equivalent point position
  @return