Questions tagged as 'filter'

0
answers

Unstable filter at the beginning [closed]

I'm having a problem with my filters IIR . I am trying to filter a ECG (Electrocardiogram) signal through a filter that passes low IIR, and then through a high pass IIR. The problem is that this filter is unstable at first. And be...
asked by 03.05.2015 / 22:45
1
answer

Passing parameter in the FILTER of an array in JavaScript

I need to pass a parameter to an external function that I want to create for a filter array, but I do not know how to do it. Example: This code already works: const myArray = [ { "name": "nome1" }, { "name": "nome2" }, { "name": "...
asked by 26.05.2017 / 00:25
2
answers

Using the filter method an array of objects

I have an array of objects: const musicData = [ { artist: 'Adele', name: '25', sales: 1731000 }, { artist: 'Drake', name: 'Views', sales: 1608000 }, { artist: 'Beyonce', name: 'Lemonade', sales: 1554000 }, { artist: 'Chris Stap...
asked by 11.03.2018 / 02:51
1
answer

How to return values using .map () in JavaScript

I'm trying to make a .map() method, but I'm not getting it. My last code was this: var double = x => x * 2; function filtro(funcao, numeros) { let arr = []; for (let i = 0; i < numeros.length; i++){ arr.push(nu...
asked by 27.01.2018 / 00:11
1
answer

How to KEEP ONLY what was filtered in AngularJS?

I have the following AngularJS file: <script> angular.module('meuModulo', []) .controller('mercadoriaCarrinho', function($scope, $http) { var ctrl = this; $scope.listademercadoria = [];...
asked by 27.09.2017 / 18:59
1
answer

Multiple filters on a json object?

Hello. I have 10 filters for a single json object: var filtro1 = function(value, selecionado){ var data = JSON.parse(JSON.stringify(json.aPesquisa)); var result = data.filter(function(pesquisa){ ... }); return result...
asked by 24.07.2017 / 23:53
1
answer

Error redirecting to a jsf page inside a bean

(RESOLVED) Error redirecting to a jsf page within a ManagerBean. I have an application in Java EE, and I want to validate within the LoginBean constructor (ViewScope) to redirect to my main page if there is already a session open and valid for t...
asked by 31.03.2017 / 22:51
0
answers

Search for desired customer in vector - Ionic

Well, I'm having problems with my application. The idea would be: I type a client in the search bar, it traverses the vector, brings its clients in a list. So far so good. The problem: When I have two clients with the same initial characters, it...
asked by 15.10.2018 / 14:34
0
answers

Find multiple values in database using django / python

I have a question a little hard to explain: I need to do some database queries and the data is structured in the following way: Alias table: SELECT id, alias_type, alias_value, individual_id FROM 'snpdb_alias' (84, 'ID_ASSOC', 'PMGS0001'...
asked by 10.09.2018 / 17:30
0
answers

Filtering by date with dataTables how to do - uncomplicating

Hello I am implementing the date filter with jquery dataTable, with the built-in draw () feature. It's a bit complicated so I'd like to see if anyone can understand. I put the code in the fiddle: link I'll put here the js excerpt I'm...
asked by 20.06.2018 / 13:45