• 大小: 16KB
    文件类型: .m
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: Matlab
  • 标签: 云模型  matlab  

资源简介

基于正态云模型,用正向正态云发生器和逆向正态云发生器来模拟花卉的部分特征提取。

资源截图

代码片段和文件信息

function flowercloud
clear
%输入三类花各自的四个特征参量(萼片长度、萼片宽度、花瓣长度、花瓣宽度)的样本值,构成三个四维样本矩阵:
%刺芒野古苣(Setosa)
x1(1:)=[5.14.94.74.65.05.44.65.04.44.95.44.84.84.35.85.75.45.15.75.15.45.14.65.14.85.05.05.25.24.74.85.45.25.54.95.05.54.94.45.15.04.54.45.05.14.85.14.65.35.0]; 
x1(2:)=[3.53.03.23.13.63.93.43.42.93.13.73.43.03.04.04.43.93.53.83.83.43.73.63.33.43.03.43.53.43.23.13.44.14.23.13.23.53.13.03.43.52.33.23.53.83.03.83.23.73.3]; 
x1(3:)=[1.41.41.31.51.41.71.41.51.41.51.51.61.41.11.21.51.31.41.71.51.71.51.01.71.91.61.61.51.41.61.61.51.51.41.51.21.31.51.31.51.31.31.31.61.91.41.61.41.51.4]; 
x1(4:)=[0.20.20.20.20.20.40.30.20.20.10.20.20.10.10.20.40.40.30.30.30.20.40.20.50.20.20.40.20.20.20.20.40.10.20.10.20.20.10.20.20.30.30.20.60.40.30.20.20.20.2]; 
%变色鸡锦花(Versicolour)
x2(1:)=[7.06.46.95.56.55.76.34.96.65.25.05.96.06.15.66.75.65.86.25.65.96.16.36.16.46.66.86.76.05.75.55.55.86.05.46.06.76.35.65.55.55.55.86.05.46.06.76.35.65.5]; 
x2(2:)=[3.23.23.12.32.82.82.32.42.92.72.03.02.22.92.93.13.02.72.22.53.22.82.52.82.93.02.83.02.92.62.42.42.72.73.03.43.12.33.02.52.63.02.62.32.73.02.92.92.52.8]; 
x2(3:)=[4.74.54.94.04.64.54.73.34.63.93.54.24.04.73.64.44.54.14.53.94.84.04.94.74.34.44.85.04.53.53.83.73.95.14.54.54.74.44.14.04.44.64.03.34.24.24.24.33.04.1]; 
x2(4:)=[1.41.51.51.31.51.31.61.01.31.41.01.51.01.41.31.41.51.01.51.11.81.31.51.21.31.41.41.71.51.01.11.01.21.61.51.61.51.31.31.31.21.41.21.01.31.21.31.31.11.3];  
%北美车前草(Virginica)
x3(1:)=[6.35.87.16.36.57.64.97.36.77.26.56.46.85.75.86.46.57.77.76.06.95.67.76.36.77.26.26.16.47.27.47.96.46.36.17.76.36.46.06.96.76.95.86.86.76.76.36.56.25.9]; 
x3(2:)=[3.32.73.02.93.03.02.52.92.53.63.22.73.02.52.83.23.03.82.62.23.22.82.82.73.33.22.83.02.83.02.83.82.82.82.63.03.43.13.03.13.13.12.73.23.33.02.53.03.43.0]; 
x3(3:)=[6.05.15.95.65.86.64.56.35.86.15.15.35.55.05.15.35.56.76.95.05.74.96.74.95.76.04.84.95.65.86.16.66.45.65.16.15.65.54.85.45.65.15.15.95.75.25.05.25.45.1]; 
x3(4:)=[2.51.92.11.82.22.11.71.81.82.52.01.92.12.02.42.31.82.22.31.52.32.02.01.82.11.81.81.82.11.61.92.02.21.51.42.32.41.81.82.12.42.31.92.32.52.31.92.02.31.8];


%计算原始三类花样本的四个特征参量的均值
%刺芒野古苣(Setosa)
ex1(1)=mean(x1(1:)‘);
ex1(2)=mean(x1(2:)‘); 
ex1(3)=mean(x1(3:)‘); 
ex1(4)=mean(x1(4:)‘); 
%变色鸡锦花(Versicolour)
ex2(1)=mean(x2(1:)‘);
ex2(2)=mean(x2(2:)‘); 
ex2(3)=mean(x2(3:)‘); 
ex2(4)=mean(x2(4:)‘); 
%北美车前草(Virginica)
ex3(1)=mean(x3(1:)‘);
e

评论

共有 条评论