How can I speed my function?
    5 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    zaier xiang
 am 22 Apr. 2017
  
    
    
    
    
    Bearbeitet: zaier xiang
 am 27 Apr. 2017
            the function is used to compute hoeffdingsD measure,but the performance of my function is poor. when i use it in my code ,it usually cost several days.who can help me ,or compile it .
0 Kommentare
Akzeptierte Antwort
  Andrew Newell
      
 am 22 Apr. 2017
        One source of delays can be repmat. This can be replaced by a suitable choice of index, as in the following:
r = R(i,:);
r = r(ones(N,1),:);
That said, it may be too much to expect a really fast implementation of this algorithm, judging by this discussion of the algorithm.
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!