Class ExampleClickTrains
java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.test.ExampleClickTrains
Simulates some clicks to test the MHT algorithm on.
- Author:
 - Jamie Macaulay
 
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongenerateClickSet(double ICI, double amplitude, double start, double end, double randTimeFactor, double randAmpFactor) Generate a set of clicks.Get the last laoded set of simulated clicks.Get a .mat file containing simulated clicks.Convenience function to import simulated click trains.importSimClicks(File file) Import clicks from an MHT file.voidSimulate a set of clicks without importing any clicks.voidsimClickTrack(double ICI, double amplitude, double start, double end, double randTimeFactor, double randAmpFactor) Simulates a single tracks and adds to the data block after clearing previous data. 
- 
Field Details
- 
masterPath
Default path to the simulated clicks. 
 - 
 - 
Constructor Details
- 
ExampleClickTrains
public ExampleClickTrains() - 
ExampleClickTrains
public ExampleClickTrains(int type) The simulated clicks to load.- Parameters:
 type-
 
 - 
 - 
Method Details
- 
getSimClicksFile
Get a .mat file containing simulated clicks.- Parameters:
 type- - the file type- Returns:
 - the file.
 
 - 
importSimClicks
Import clicks from an MHT file.- Parameters:
 file- - the .mat file to import.- Returns:
 - the datablock containg simple clicks.
 
 - 
importSimClicks
Convenience function to import simulated click trains.- Parameters:
 type- - flag for the simulated clicks to import.- Returns:
 - a data block containing the simulated clicks.
 
 - 
simClicks1
public void simClicks1()Simulate a set of clicks without importing any clicks. - 
simClickTrack
public void simClickTrack(double ICI, double amplitude, double start, double end, double randTimeFactor, double randAmpFactor) Simulates a single tracks and adds to the data block after clearing previous data.- Parameters:
 ICI- - the inter click intervalamplitude- - the amplitude in dBstart- - the start in secondsend- - the end in secondsrandTimeFactor- - the random error to add to the timerandAmpFactor- - the random error to add to the amplitude.
 - 
generateClickSet
public ArrayList<SimpleClick> generateClickSet(double ICI, double amplitude, double start, double end, double randTimeFactor, double randAmpFactor) Generate a set of clicks.- Parameters:
 ICI- - the inter click intervalamplitude- - the amplitude in dBstart- - the start in secondsend- - the end in secondsrandTimeFactor- - the random error to add to the timerandAmpFactor- - the random error to add to the amplitude.- Returns:
 - the time series of simple clicks.
 
 - 
getSimClicks
Get the last laoded set of simulated clicks.- Returns:
 - data block containing the simulated clicks.
 
 
 -