what is the time complexity

1 view (last 30 days)
Doaa Adel
Doaa Adel on 19 Sep 2015
Commented: Doaa Adel on 20 Sep 2015
if i will depend on fft2 for calculating weighted mean and variance of image and i will do that several times with a for loop, what will be the time complexity?? will it be O(kNlog_2(N)) where N is the image size and k is the no of times of for loop ??

Accepted Answer

Walter Roberson
Walter Roberson on 19 Sep 2015
Edited: Walter Roberson on 19 Sep 2015
O(k*N^2*log2(N))
for square matrices.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!