Home > ACA-Code > NoveltyLaroche.m

NoveltyLaroche

PURPOSE ^

computes the novelty measure used by laroche

SYNOPSIS ^

function [d_lar] = NoveltyLaroche (X, f_s)

DESCRIPTION ^

computes the novelty measure used by laroche
> called by ::ComputeNoveltyFunction
>
> @param X: spectrogram (dimension FFTLength X Observations)
> @param f_s: sample rate of audio data (unused)
>
> @retval d_lar novelty measure
 ======================================================================

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %computes the novelty measure used by laroche
0002 %> called by ::ComputeNoveltyFunction
0003 %>
0004 %> @param X: spectrogram (dimension FFTLength X Observations)
0005 %> @param f_s: sample rate of audio data (unused)
0006 %>
0007 %> @retval d_lar novelty measure
0008 % ======================================================================
0009 function [d_lar] = NoveltyLaroche (X, f_s)
0010 
0011     % difference spectrum
0012     afDeltaX    = diff([X(:,1), sqrt(X)],1,2);
0013     
0014     % flux
0015     d_lar       = sum(afDeltaX)/size(X,1);
0016 end

Generated on Fri 22-Apr-2022 20:59:51 by m2html © 2005