You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: cMeans.m
    path of file: ./repos/mtex/tools/statistic_tools
    
    the code of the file until where you have to start completion: classdef cMeans < kMeans
  
  properties
    m = 1.5 % fuzzifier
  end
  
  met
    
function [cid, center, u] = doClustering(cm,obj)
    
      cm.initSeeds(obj);
            
      D = 0.00001 + angle_outer(obj,cm.center).^(2/(cm.m-1));
      u = 1 ./ (D .* repmat(sum(1./D,2),1,cm.n));
      
      u_old = zeros(size(u));
      
      % computes new centers until the labels do not change anymore
      while mean((u(:) - u_old(:)).^2) > 1e-3
        
        % compute new centers
        for i = 1:cm.n
          cm.center(i) = mean(obj,'weights',u(:,i).^cm.m);
        end