Code Directory
 Visual Basic & VB.NET
New Code
The C# Excel Library 2020.5
dbForge Studio for MySQL 9.0
LinkedIn Clone 2.2
Uber clone Apps 4.0
Cab Booking Script 1.3.2
Airbnb Clone HomestayDNN 3.0
Magento Language switcher 1.2.1
The .Net PDF Library 2020.3.2
IP2Location Geolocation Database 2020.5
ODBC Driver for MailChimp 2.0
ODBC Driver for NetSuite 2.0
ODBC Driver for SQL Azure 3.1
dbForge Schema Compare for Oracle 4.1
dbForge Data Compare for Oracle 5.1
dbForge Studio for Oracle 4.1
Top Code
dbForge Studio for MySQL 8.1
dbForge Studio for Oracle 3.10
dbForge Schema Compare for Oracle 2.7
dbForge Data Compare for Oracle 3.7
IP2Location Geolocation Database 2020.5
IcrediBB Bulletin Board System 1.0
Availability Booking Calendar PHP 1.0
ATN Site Builder 3.0
Azizi search engine script PHP 4.1.10
Invoice Manager by PHPJabbers 3.0
Deals and Discounts Website Script 1.0.2
Extreme Injector 3.7
Paste phpSoftPro 1.4.1
Single Leg MLM 1.2.1
ATN Resume Finder 2.0
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Average Across Frequencies 1.0
File ID: 84212

Average Across Frequencies 1.0
Download Average Across Frequencies 1.0 Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 1
Submit Rating:
Average Across Frequencies 1.0 Description
Description: This sounds at first like a trivial task, but in practice took something that works correctly and faster for larger datasets (i.e. without using a simple find or related statement each time within a for loop). Thus I am submitting this here in case it might the time of anyone else with similar needs who comes across this.

Help comments for the function:
%function [OutVals fout]=AvgAcrossFreqs(InVals,fraw,fstep,fk,f0cut,CalcType)
% Will Avg InVals across the freq vals give in fraw into the output
% frequency bins separated by fstep with range given by fk, and initial bin
% determined by f0cut.
% This could of course be applied generally to average any one value over
% another, but was written with the intention of averaging coherence or
% spectral power values across frequencies in a data format with multiple
% repetitions (for example multiple subjects or experiment sessions).
% Inputs
% InVals: The values to be averaged across. Could be a single
% numeric array, of dimension NReps x nRawf, or could be
% a 1D cell array of any number of such a numeric array.
% fraw: A 1D vector of length nRawf (matching the 2nd
% dimension of numeric arrays of InVals) indicating the
% input freequency correspnding to each val of InVals.
% Assuemd to be in Hz- though any freq unit could be used
% if the other inputs are consistent with that unit.
% fstep: The frequency resolution (in Hz) of the output that the
% InVals are averaged into. Defaults to 1/8.
% fk: A 1x2 or 2x1 vector indicating the output frequency
% range to use. Defaults to [0 100].
% f0cut: Indicates the upper cutoff frequency used for the
% first bin. ... so the first output bin frequency will
% avg InVals from fk(1) up to f0cut, and each output bin
% will increase in fstep steps from there. Defaults to
% fstep/2.
% CalcType: Indicates how to do the averaging. This can be a
% scalar, or if InVals is a cell array, a 1D vector with
% each value corresponding to each cell in InVals. This
% can also be a scalar if InVals is a cell array, in
% which case the value will apply to all cells of InVals.
% case:
% 1 corresponds to a basic nanmean. (for coh mags, abs
% vals should be done to the input BEFORE CALLING
% this function.) (This is the Default)
% 2: any function.
% 3: sum function
% 4: angle of the sum across frequencies
% 5: angle of the sum across repetitions and
% frequencies. Note that this affects the size of
% OutVals, by forcing it to have 1 row/rep.
% Outputs
% OutVals: A numeric array or CellArray corresponding to InVals.
% Each numeric array will have dimensions nReps x nfout.
% (Or possible 1 x nfout if CalcType is set to 5).
% fout: The output frequencies, corresponding to the center
% frequency of each frequency bin in OutVals.
% Matthew Nelson 2010

License: Shareware

Related: inputs, consistent, correspnding, assuemd, Resolution, defaults, increase, steps

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 1

More Similar Code

Computes the Woody average by first aligning individual signals (corrupted by jitter) with the standard average. Uses xcorr to compute the lag and then re-averages the signals to get an improved estimate.

Example included in help.

Technique deteriorates at low SNRs.

Calculates the Mutual Average Information of a time series for some time lag.

Sharing Cookies Across Domains is a web based article in which author discusses about how to share cookies between domains and sub domains, how to retrieve cookies from other domain, how to share more than one cookies and various examples...

This lists unique words and word frequencies occurring in a Python string. You can ignore or take account of letter case in distinguishing words, and you can pass it your own inclusion list of characters allowed in words (e.g. is...

Here is a simple program that can average a list of numbers. I wrote this to introduce someone to the language that we all use and love. :D The program may be simple, but it shows how easily a simple but useful program can turn out to be.

This project is based on DSP algorithm which is capable of producing fundamental frequencies of an guitar.
Its very easy to implement.

Calculates the average log-spectral distance between CLEAN and NOISY signals. It has the capability of calculating this distance for a specified sub-band as well. This measure is used for evaluation of processed speech quality in comparison to the...

This routine computes the fft of the input signal and removes power at the annual (or any specified frequency) by replacing the power at that frequency with the average of terms on both sides; this is done in the sine and cosine terms so as to...

Very efficient moving average filter implemented using convolution.


Smoothed Data = movave(Data Vector, Averaging Window Size in Samples)

See also: slidefilter.m by the same author

Calculates the average log-spectral distance between CLEAN and NOISY signals. Has the option of calculating this distance for speech active periods only. Also you can select a frequency range to study the distance in a sub-band.

User Review for Average Across Frequencies
- required fields

Please enter text on the image