<commit_before>/**
 * @file		Skip.h
 * @author  	<NAME> <<EMAIL>>
 * @version 	1.0
 * @date		18.2.2016
 * @copyright	MIT License (see LICENSE file)
 * @brief		Skip silence
 *
 */

#ifndef SKIP_H_
#define SKIP_H_

#include "Channel.h"

/**
 * @brief  Skip silence
 * @image html skip-result.png
 * @image latex skip-result.png "Result of standard skip filter" width=10cm
 */
class Skip
{
public:
	/**
	 * Skip silence in channels if absolute sum of voltages are below
	 * silence level fraction compared to maximum level for longer than
	 * minsec seconds. Shorten the period by the time to the reduction order.
	 * The transition period is in the middle of silence for a maximum time
	 * of maxtransition seconds.
	 * @param channels Channels where silence is to be skipped
	 * @param silenceLevel fraction compared to maximum what is considered silence
	 * @param minsec minimum time of silence before skipping is considered
	 * @param mintransition minimum time of transition
	 * @param reductionOrder reduction by time to the reduction order
	 * @return
	 */
	static float silence(Channels &channels,float silenceLevel=0.01,float minsec=0.5,float mintransition=0.05,float reductionOrder=0.75);
};

#endif /* SKIP_H_ */<commit_msg>Skip signal filter for noise analysis<commit_after>/**
 * @file		Skip.h
 * @author  	<NAME> <<EMAIL>>
 * @version 	1.0
 * @date		18.2.2016
 * @copyright	MIT License (see LICENSE file)
 * @brief		Skip silence
 *
 */

#ifndef SKIP_H_
#define SKIP_H_

#include "Channel.h"

/**
 * @brief  Skip silence
 * @image html skip-result.png
 * @image latex skip-result.png "Result of standard skip filter" width=10cm
 */
class Skip
{
public:
	/**
	 * Skip silence in channels if absolute sum of voltages are below
	 * silence level fraction compared to maximum level for longer than
	 * minsec seconds. Shorten the period by the time to the reduction order.
	 * The transition period is in the middle of silence for a maximum time
	 * of maxtransition seconds.
	 * @param channels Channels where silence is to be skipped
	 * @param silenceLevel fraction compared to maximum what is considered silence
	 * @param minsec minimum time of silence before skipping is considered
	 * @param mintransition minimum time of transition
	 * @param reductionOrder reduction by time to the reduction order
	 * @return
	 */
	static float silence(Channels &channels,float silenceLevel=0.01,float minsec=0.5,float mintransition=0.05,float reductionOrder=0.75);

    /**
	 * Skip noise in channels if absolute sum of voltages are higher than
	 * silence level fraction compared to maximum level.
	 * @param channels Channels where silence is to be skipped
	 * @param silenceLevel fraction compared to maximum what is considered silence
	 * @param minsec minimum time of silence before skipping is considered
	 * @param maxtransition maximum time of transition
	 * @return
	 */
	static float noise(Channels &channels,float silenceLevel=0.01,float minsec=0.1,float maxtransition=0.05);
};

#endif /* SKIP_H_ */
{'fraction_non_alphanumeric': 0.08134130146082337, 'fraction_numerical': 0.017264276228419653, 'mean_word_length': 3.9966832504145935, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1585021', 'n_tokens_mistral': 879, 'n_tokens_neox': 828, 'n_words': 361}