tomwalters@273: #!/usr/bin/env python
tomwalters@273: # encoding: utf-8
tomwalters@273: #
tomwalters@273: # AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@273: # http://www.acousticscale.org/AIMC
tomwalters@273: #
tomwalters@273: # This program is free software: you can redistribute it and/or modify
tomwalters@273: # it under the terms of the GNU General Public License as published by
tomwalters@273: # the Free Software Foundation, either version 3 of the License, or
tomwalters@273: # (at your option) any later version.
tomwalters@273: #
tomwalters@273: # This program is distributed in the hope that it will be useful,
tomwalters@273: # but WITHOUT ANY WARRANTY; without even the implied warranty of
tomwalters@273: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
tomwalters@273: # GNU General Public License for more details.
tomwalters@273: #
tomwalters@273: # You should have received a copy of the GNU General Public License
tomwalters@273: # along with this program. If not, see .
tomwalters@273: """
tomwalters@273: ModuleGaussians_test.py
tomwalters@273:
tomwalters@273: Created by Thomas Walters on 2010-02-15.
tomwalters@273: Copyright 2010 Thomas Walters
tomwalters@273: Test for the Gaussians module. Runs a number of pre-computed SAI profiles
tomwalters@273: through the module, and tests them against the equivalent output from the
tomwalters@273: MATLAB rubber_GMM code.
tomwalters@273: """
tomwalters@273:
tomwalters@273: import aimc
tomwalters@273: import matplotlib
tomwalters@273: import pylab
tomwalters@273: import scipy
tomwalters@273:
tomwalters@273: def main():
tomwalters@273: data_file = "src/Modules/Features/testdata/aa153.0p108.1s100.0t+000itd.mat"
tomwalters@273: data = scipy.io.loadmat(data_file)
tomwalters@273:
tomwalters@273: given_profiles = data["Templates"]
tomwalters@273: matlab_features = data["feature"]
tomwalters@273:
tomwalters@273:
tomwalters@273:
tomwalters@273: pass
tomwalters@273:
tomwalters@273:
tomwalters@273: if __name__ == '__main__':
tomwalters@273: main()