Skip to content

Instantly share code, notes, and snippets.

View muhrifqii's full-sized avatar
:octocat:

Muhammad Rifqi Fatchurrahman muhrifqii

:octocat:
View GitHub Profile
@muhrifqii
muhrifqii / audspec.m
Last active October 6, 2016 07:53
RASTA-PLP in MATLAB
function [aspectrum,wts] = audspec(pspectrum, sr, nfilts, fbtype, minfreq, maxfreq, sumpower, bwidth)
%[aspectrum,wts] = audspec(pspectrum, sr, nfilts, fbtype, minfreq, maxfreq, sumpower, bwidth)
%
% perform critical band analysis (see PLP)
% takes power spectrogram as input
if nargin < 2; sr = 16000; end
if nargin < 3; nfilts = ceil(hz2bark(sr/2))+1; end
if nargin < 4; fbtype = 'bark'; end
if nargin < 5; minfreq = 0; end
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TableLayout table = new TableLayout(this);
table.setStretchAllColumns(true);
table.setShrinkAllColumns(true);
TableRow rowTitle = new TableRow(this);