octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FUZZY-LOGIC] crash?


From: Juan Pablo Carbajal
Subject: [FUZZY-LOGIC] crash?
Date: Thu, 6 Mar 2014 18:11:26 +0100

Hi,
The following data makes fcm of the fuzzy logic package crash with
division by zero

t  = linspace (0,1,100).';
y = sin (2*pi*20*t);
x = double (abs (y) > 0.7)
s = fcm (x,3);
Iteration count = 1,  Objective fcn = 4.502587
Iteration count = 2,  Objective fcn = 0.018725
Iteration count = 3,  Objective fcn = 0.000000
error: division by 0 in function fcm_update_cluster_centers

I guess it is due to an unhandled case when the cost function is exactly zero.

Shall I file a bug report?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]