forked from dolphin-acoustics-vip/artwarp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContour.m
23 lines (21 loc) · 850 Bytes
/
Contour.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
classdef Contour
% Represents a single tonal waveform
% Holds the raw frequency values as well as extrapolated variables
properties
frequency % An array of raw frequency values
tempres % Sample rate of frequency
length % Length of the current contour
category % Current category of the contour
warp_function % Current warp function of the categorised contour
end
methods (Static)
function obj = Contour(frequency, tempres, length, category, warpFunction)
% Updates the contour with new values
obj.frequency = frequency; % frequency component of csv
obj.tempres = tempres; % tempres component of the csv
obj.length = length;
obj.category = category;
obj.warp_function = warpFunction;
end
end
end