资源简介
本程序以西储大学故障数据为例,对输入信号进行双谱分析,并绘图绘制了双谱的二维和三维图形
代码片段和文件信息
function [Bspecwaxis] = bispecd (y nfft wind nsamp overlap)
%BISPECD Bispectrum estimation using the direct (fft-based) approach.
% [Bspecwaxis] = bispecd (y nfft wind segsamp overlap)
% y - data vector or time-series
% nfft - fft length [default = power of two > segsamp]
% wind - window specification for frequency-domain smoothing
% if ‘wind‘ is a scalar it specifies the length of the side
% of the square for the Rao-Gabr optimal window [default=5]
% if ‘wind‘ is a vector a 2D window will be calculated via
% w2(ij) = wind(i) * wind(j) * wind(i+j)
% if ‘wind‘ is a matrix it specifies the 2-D filter directly
% segsamp - samples per segment [default: such that we have 8 segments]
% - if y is a matrix segsamp is set to the number of rows
% overlap - percentage overlap [default = 50]
% - if y is a matrix overlap is set to 0.
%
% Bspec - estimated bispectrum: an nfft x nfft array with origin
% at the center and axes pointing down and to the right.
% waxis - vector of frequencies associated with the rows and columns
% of Bspec; sampling frequency is assumed to be 1.
% Copyright (c) 1991-2001 by United Signals & Systems Inc.
% $Revision: 1.8 $
% A. Swami January 20 1993.
% RESTRICTED RIGHTS LEGEND
% Use duplication or disclosure by the Government is subject to
% restrictions as set forth in subparagraph (c) (1) (ii) of the
% Rights in Technical Data and Computer Software clause of DFARS
% 252.227-7013.
% Manufacturer: United Signals & Systems Inc. P.O. Box 2374
% Culver City California 90231.
%
% This material may be reproduced by or for the U.S. Government pursuant
% to the copyright license under the clause at DFARS 252.227-7013.
% --------------------- parameter checks -----------------------------
[ly nrecs] = size(y);
if (ly == 1) y = y(:); ly = nrecs; nrecs = 1; end
if (exist(‘nfft‘) ~= 1) nfft = 2000; end
if (exist(‘overlap‘) ~= 1) overlap = 50; end
overlap = min(99max(overlap0));
if (nrecs > 1) overlap = 0; end
if (exist(‘nsamp‘) ~= 1) nsamp = 0; end
if (nrecs > 1) nsamp = ly; end
if (nrecs == 1 & nsamp <= 0)
nsamp = fix(ly/ (8 - 7 * overlap/100));
end
if (nfft < nsamp) nfft = 2^nextpow2(nsamp); end
overlap = fix(nsamp * overlap / 100); % added 2/14
nadvance = nsamp - overlap;
nrecs = fix ( (ly*nrecs - overlap) / nadvance);
% ------------------- create the 2-D window -------------------------
if (exist(‘wind‘) ~= 1) wind = 5; end
[mn] = size(wind);
window = wind;
if (max(mn) == 1) % scalar: wind is size of Rao-Gabr window
winsize = wind;
if (winsize < 0) winsize = 5; end % the window length L
winsize = winsize - rem(winsize2) + 1; % make it odd
if (win
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5863 2018-06-29 10:20 双谱分析\bispecd.m
文件 462 2018-07-06 10:43 双谱分析\sp_waiquan.m
目录 0 2018-07-06 10:47 双谱分析
----------- --------- ---------- ----- ----
6325 3
- 上一篇:DFT算法谐波分析源代码
- 下一篇:实训:配置数字证书服务.docx
相关资源
- 《Spring Boot2企业应用实战》PDF高清
- SPH 流体动画源代码
- Multicore DSP_From Algorithms to Real-time Imp
- 黑马最新的“学成在线”百度网盘链
- MSP430直流电机调试霍尔
- Hspice 很经典的教程,写的特别好
- CMOS模拟集成电路设计与仿真 基于HS
- 树莓派100个精彩案例
- Spring从入门到精通(珍藏版)带书签
- aerospike-3.16.0.6
-
spring-fr
amework-3.0.5.RELEASE-dependencies - QT + ffmpeg 播放 rtsprtmpudp视频流
- Proteus7.5sp3破解汉化
- 数字信号处理 第四版英文
- 互联网轻量级SSM框架解密:Spring、S
- FDC2214例程读取电容值msp430f5529
- Neospeech英文男声_Paul.part1.rar 共4部分
- 深入实践SpringBoot_陈韶健_最新高清完
- SPSS 25 演算法SPSS_Statistics_AlgorithmsIBM官
- SpringMvc学习指南书上源码第二版
- Spring+MyBatis企业应用实战 源码含14章最
- 抓包的三软件博文
- 离线和实时大数据开发实战
- 基于知识图谱的问答系统 -- SpringBoo
- 使用SSM开发商城项目
- spring mvc + Mina 配置部署
- 基于jsoup的SpringBoot爬虫demo
- msp430f149flash读写
- spss19 视频教程以及案例数据集迅雷地
- Redis 缓存 + Spring 的集成
评论
共有 条评论