<commit_before>/* RetinaBackgrondActivityFilter.java
 *
 * Created on October 21, 2005, 12:33 PM */
package net.sf.jaer.eventprocessing.filter;

import net.sf.jaer.chip.*;
import net.sf.jaer.event.*;
import net.sf.jaer.eventprocessing.EventFilter2D;
import net.sf.jaer.Description;
import net.sf.jaer.DevelopmentStatus;
import java.util.Observable;
import java.util.Observer;
import java.util.Arrays;
import java.util.Random;

@Description("Filters out uncorrelated background activity")
@DevelopmentStatus(DevelopmentStatus.Status.Stable)
public class AerCorrFilter extends EventFilter2D implements Observer {

    final int MAX_Ileak = 1000000, MIN_Ileak = 1;
    final int DEFAULT_TIMESTAMP = Integer.MIN_VALUE;

    private float iLeakPicoAmps = getFloat("iLeakPicoAmps", 100);

    private int subsampleBy = getInt("subsampleBy", 0);

    private float[][] vCap;
    // private float Vth = 0.6;
    int[][] lastTimesMap;
    private float[][] cap;
    private float[][] vRs;
    private float[][] iLeakRealpA;
    private int ts = 0; // used to reset filter<commit_msg>changed description of class <commit_after>/* RetinaBackgrondActivityFilter.java
 *
 * Created on October 21, 2005, 12:33 PM */
package net.sf.jaer.eventprocessing.filter;

import net.sf.jaer.chip.*;
import net.sf.jaer.event.*;
import net.sf.jaer.eventprocessing.EventFilter2D;
import net.sf.jaer.Description;
import net.sf.jaer.DevelopmentStatus;
import java.util.Observable;
import java.util.Observer;
import java.util.Arrays;
import java.util.Random;

@Description("Models the AerCorr chip which detects and can be used to filter out uncorrelated activity")
@DevelopmentStatus(DevelopmentStatus.Status.Stable)
public class AerCorrFilter extends EventFilter2D implements Observer {

    final int MAX_Ileak = 1000000, MIN_Ileak = 1;
    final int DEFAULT_TIMESTAMP = Integer.MIN_VALUE;

    private float iLeakPicoAmps = getFloat("iLeakPicoAmps", 100);

    private int subsampleBy = getInt("subsampleBy", 0);

    private float[][] vCap;
    // private float Vth = 0.6;
    int[][] lastTimesMap;
    private float[][] cap;
    private float[][] vRs;
    private float[][] iLeakRealpA;
    private int ts = 0; // used to reset filter
{'fraction_non_alphanumeric': 0.10955183340878226, 'fraction_numerical': 0.02444545043005885, 'mean_word_length': 4.511221945137157, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '674928', 'n_tokens_mistral': 768, 'n_tokens_neox': 688, 'n_words': 189}