0% found this document useful (0 votes)
73 views1 page

Create Initial F Is

This document is a MATLAB code for creating an initial fuzzy inference system (FIS) using fuzzy c-means clustering. It takes in training data and the number of clusters as inputs, performs fuzzy c-means clustering with default parameters if the number of clusters is not specified, and generates a Sugeno-type FIS with the determined number of clusters. The code is copyrighted and was created by a developer as part of a project for evolutionary ANFIS training in MATLAB.

Uploaded by

Miljan Kovacevic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views1 page

Create Initial F Is

This document is a MATLAB code for creating an initial fuzzy inference system (FIS) using fuzzy c-means clustering. It takes in training data and the number of clusters as inputs, performs fuzzy c-means clustering with default parameters if the number of clusters is not specified, and generates a Sugeno-type FIS with the determined number of clusters. The code is copyrighted and was created by a developer as part of a project for evolutionary ANFIS training in MATLAB.

Uploaded by

Miljan Kovacevic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

12/9/16 2:18 AM

%
%
%
%
%
%
%
%
%
%
%
%

C:\Users\Miljan Kova...\CreateInitialFIS.m

Copyright (c) 2015, Yarpiz (www.yarpiz.com)


All rights reserved. Please read the "license.txt" for license terms.
Project Code: YPFZ104
Project Title: Evolutionary ANFIS Traing in MATLAB
Publisher: Yarpiz (www.yarpiz.com)
Developer: S. Mostapha Kalami Heris (Member of Yarpiz Team)
Contact Info: [email protected], [email protected]

function fis=CreateInitialFIS(data,nCluster)
if ~exist('nCluster','var')
nCluster='auto';
end
x=data.TrainInputs;
t=data.TrainTargets;
fcm_U=2;
fcm_MaxIter=100;
fcm_MinImp=1e-5;
fcm_Display=false;
fcm_options=[fcm_U fcm_MaxIter fcm_MinImp fcm_Display];
fis=genfis3(x,t,'sugeno',nCluster,fcm_options);
end

1 of 1

You might also like