Questions tagged [filtering]

1

votes
0

answer
7

Views

Create a custom exchange with RabbitMQ for filtering location

I am trying to develop a game with a pub/sub mechanism, so for each client-map I have a Notify Update channel. The client must subscribe to that to receive updates. But this subscribe must be conditioned by player's Area Of Interest. This interest is given by a rectangle which is based on avatar coo...
Dan Cehan
1

votes
7

answer
64

Views

Array.filter is returning empty array

I am trying to get the failure Details based on Date. For this I am applying array.filter but it is returning empty array. Below is my array: value:[{ 'Date': '02/04/2019', 'Total': '1000', 'Success': '850', 'Failure': '150', 'FailureDeatils': [{ 'Reason': 'Reason1', 'Count': 2 }, { 'Reason': 'Reaso...
kinnu
1

votes
3

answer
251

Views

How to lowpass filter an angle value

I'm receiving angle updates from a sensor in radians and I want to pass them through a low pass filtering function to smooth them slightly because of noise. My low pass filter function looks like this protected void lowPass(float alpha, double[] input, double[] output) { for (int i = 0; i < input....
Magnus W
1

votes
1

answer
328

Views

Get String value if present or null if not present using Java8 Stream

I have a json similar like as shown below. The requirement is to get the key value based on the id. ie. lets say If Id is A1 key value should return 2gAwIBAgIQKGZsKfAUzaJHVantyrwVdzANBgkqhkiG9w0BAQs. The key array will always conatins only one element. { 'keys': [ { 'id': 'A1', 'key': [ '2gAwIBAgIQ...
Alex Man
1

votes
3

answer
59

Views

Pandas: return feature names if variable is true

I have a list of ~2M strings and a list of ~800 words. I have created a dataframe with strings as rows and words as columns. With the exception of the string variable, all of the other variables are true or false values corresponding to whether or not the word is in the string. There are no missing...
Jack Reimer
1

votes
3

answer
35

Views

Prevent DataTables custom filter from affecting all tables on a page

When we add a custom filter to DataTables: $.fn.dataTable.ext.search.push(function(settings, data, dataIndex) { ... }) it works as expected on one table. However, if we have multiple tables on the same page, all filters affects all tables. How to create custom filters that only affect a specific ta...
davidkonrad
2

votes
1

answer
20

Views

Can't filter the data as category wise in codeigniter

I am developing an online shop, where I want to display category wise data. But I can't! I pass the URL like below http://localhost/e-bookshop/users/all_books?ctg=1 My Model: public function get_books() { $this->db->select('*'); $this->db->from('category'); $this->db->join('books', 'books.categoryId...
tumn
1

votes
1

answer
212

Views

Yii2 Grid View Filtering using ajax not Pjax

How to get the value of the attribute in yii2 using ajax not Pjax to filter the Gridview ?
Mohamad ali Zayat
1

votes
2

answer
62

Views

Apply filtering criteria to several SQL columns based on the values of temporary table

I have the following Input data: Chr Start End Ref Alt FORMAT Sample_01 Sample_02 Sample_03 row_id 1 1111111 1111112 AG - GT:AD:DP:GQ:PL 0/1:233,233:465:99:0,120,1800 0/0:117,0:117:99:0,120,18...
Yatrosin
1

votes
1

answer
119

Views

GridMvc not filtering all Fields

I'm using GridMvc with asp.net mvc 4.5. All of the filters are working except a few strings. I can't see any difference between these strings and the strings that are working. What am I missing? View @model Infotech.Coverpools.Portal.Tintaglia.Web.Models.AccountHistoryVM @using GridMvc.Html Account...
Josh McGee
1

votes
0

answer
128

Views

scipy.signal.minimumphase deviates from desired magnitude

I have a problem with the scipy.signal.minimumphase not providing the same magnitude response as i input, it deviates quite a lot. Long story short. I have a material, where the absorption of said material is measured in octave bands(6 discrete values). I need an impulse response that fit those valu...
1

votes
2

answer
164

Views

MATLAB - lsim() function not giving proper attenuation for my RC transfer function

I am trying to model a RC filter's transfer function in order to know how an input signal is deformed when it reaches my sample. I first build the RC filter's transfer function to fit my experimental data but when I give an input signal to the lsim() function, it doesn't give me proper results, eve...
Exeko
1

votes
1

answer
370

Views

Filtering UItableview Swift IOS

I am trying to filter a UITableView based on variables that have been passed back from another VC which is a Eureka form handling the filter UI. I would like to filter the tableview based on these two variables : var filterByPrice: Float? var filteredRentalTypes: Set? I have got the price filter wo...
George Woolley
1

votes
0

answer
60

Views

Best approach to fill signal gaps

I have a numpy 2dim array that represents a multi channel Bio-Signal. This array has dimension 20 x n_samples where the columns represent : Sample number - 16 channels data - time. Given to bluetooth connection i have some package drops so i have gaps in signal. The array has to be imported into MNE...
Andrea A.
1

votes
0

answer
38

Views

Product filter implements in WordPress Dynamiccally

I have found product filtering code on JSFIDDLE. Now I want make this dynamically. I have used WordPress ACF plugin for create custom field. For dynamic I have used data-bath and data-bed attributes. But I have not implemented this code in jquery. How can I do that?
jays
1

votes
1

answer
82

Views

filter data from localstorage with angularJS

I can't seem to get filter to work for my project using AngularJS and localstorage. There is no error but when I enter words into the input field, nothing happens. Is anyone willing to help me out? :) html: {{expense.date}} {{expense.category}} {{expense.description}} {{expense.amount| currency: '...
Dansh
1

votes
0

answer
120

Views

system identification using Least mean square algorithm

I am studying about system identification using Least Mean Square algorithm. I tried with some code using the equations for LMS. Based on the algorithm steps, the calculation of the error and weight updates looks alright. However, it fails to give the correct output. Can somebody please help in fixi...
remya
1

votes
1

answer
49

Views

SSDT SSRS How to show Report values greater than zero

I have Productivity float value, which a calculation: Sum(Fields!TotalMinutes.Value)/Sum(Fields!ProductiveHours.Value*60) This value has some zeroes: Productivity with zeroes Is there way in SSDT Visual studio to filter them out? Or should I use an expression? I tried the following in the expressi...
Hell-1931
1

votes
0

answer
95

Views

gradle tests filtering does not work for Parameterized adapter

gradle tests filtering does not work for Parameterized adapter. e.g., @RunWith(Parameterized.class) public class FooTest { @Test public void testFoo() { } } Run one test method for parameter 1: gradle test --tests com.example.test.FooTest.testFoo[1] works. But for a runner adapter wrapping over Para...
Sunnyday
1

votes
0

answer
68

Views

Matlab Filter design: compact minimum phase filter

Suppose we have the following linear system: with the transfer function and its inverse . Using Matlab, I would like to design a discrete, compact filter with minimum delay that represents the inverse transfer function, such that , where I use discrete time-index k to denote that the signals are...
TheodorBecker
1

votes
0

answer
201

Views

Is it possible to implement Excel-like sorting widget in react-table component?

I'm using react-table component for displaying and filtering of my dataset. My filters look like the following: As you can see from the image above each column can provide component for filtering (either input and select). Now, I need to implement excel-like filter that looks like this: What I've ca...
Erik
1

votes
0

answer
219

Views

Empty rows in Vaadin grid after applying filter

I try to use Vaadin grid with lazy loading. When I add filter to the grid, at some filter values I see empty rows and get java.lang.IndexOutOfBoundsException: toIndex = 45. Below is my code: public class ProcessService { private List processList; private int i; public ProcessService() { processList...
Mariia
1

votes
0

answer
106

Views

How do filter in immutable js with a filterchanging at each iteration?

I'm trying to filter an immutable.js Map object with values from a Set object in such a way that when a value matches in the set it is removed from the set for subsequent iterations. The code for filtering without consuming from the set seems straightforward const keyVals = Map({a: 1, b: 2, c: 2, d:...
Robert Stedman
1

votes
0

answer
116

Views

Why is Halide::minimum, autoschedule or no, extremely slow on CPU, but not GPU but still not good?

Trying to a simple regional min filter, and my results compare accuracy wise to a non-Halide reference implementation that I am using. BUT... this Halide code runs extremely slow on CPU (like 1 minute) and more than 60x faster than that on GPU. Still are slower than the reference implementation whic...
Michael Brothers
1

votes
1

answer
57

Views

Filtering sequential data

I have the following query (example found here on this forum) that generates a sequence number to mark each change in Location. WITH t(ID, col1 ,Location) AS ( select 1, 1 , 1 union all select 1, 2 , 1 union all select 1, 3 , 2 union all select 1, 4 , 2 union all select 1, 5 , 1 union all...
Bertusian
1

votes
0

answer
961

Views

Angular 5 Multiple Search Field Filter

I have a multiple search field. I want to be available to loop through an array of properties and filter out the correct data that it corresponds too and display the data in the table I have it working but in a different way. Please look at old code and new code. New code does not work and new code...
Jose Cabrera
1

votes
0

answer
88

Views

implement Filter with multi property Angular 5 - javascript

basically I want to implement a multi property filter that will filter Array of objects so I started to made a function multiFilter that accept a filter object that will selected from the end user who can select multi property such as brands colors name this function that help me to pass the array...
Ahmed hussien
1

votes
0

answer
46

Views

Filtering array based on checkbox conditional values

So, I'm a bit stuck. I'm filtering an array based on the values of another array. When the user clicks a check box a year value gets pushed to an array (checkedBoxes), then the yearMarker array is populated from meeting the condition IF the marker.year (from mapMarkers array) entry is equal to any v...
Sharper
1

votes
2

answer
48

Views

How to filter resultset rows by comparing malformed date string and today's date?

I have a VARCHAR column in my mysql database that stores dates with commas rather than hyphens. I want to fetch some data by comparing these dates against the current date. To get the current date, I am using the php5 method date('Y,m,d'); and declaring it as $date; If the current date is less than...
haider
1

votes
1

answer
1k

Views

Power BI Allows Only one Filtering Path Between Tables in a Data Model

I am trying to add relationships for multiple tables but Power Bi is only allowing ONE table to be with 'Both' for the 'Cross Filter Direction'. If I try to select other tables to be with 'Both' cross filter, then an error comes up saying 'Power BI Desktop allows only one filtering path between tab...
MrKen
1

votes
1

answer
247

Views

Collaborative Filtering using categorical features

I am trying to build a recommender system using collaborative filtering. The issues I am facing are : The User-Item dataset has mostly categorical variables, so cant find the best way to calculate similarity matrix. Euclidean / Cosine distance will not work here, trying with Jaccard distance. The da...
Suvajit
1

votes
0

answer
40

Views

Generic filtering on query string parameters

I'm looking to convert our current API architecture to a more generic query-able structure that doesn't require us to hard card each possible parameter and build up a custom query. Here is an example of what our current architecture looks like, [HttpGet] [Route('Companies/{id:int}/Implementations/Ta...
tokyo0709
1

votes
0

answer
119

Views

Lanczos Splines Interpolation

I have been trying to figure out something that is math related but I can not get any detailed information in Math Stack Exchange, so I am trying to question it here cause I know computer scientist are a whole lot smartert :) I have been trying to implement image resampling recorring to interpolatio...
Pedro Pereira
1

votes
1

answer
713

Views

How to filter list elements from enum in typescript?

I am working on Angular 2 with Typescript, and I have a scenario where I have to filter elements from a list after comparing with enum. Like - let products: Array = [A, B, C, D, E, F]; below is my enum- export const enum ProductType { A= 0, B= 1, C= 2 } Now I want to return a list with below...
user3848036
1

votes
4

answer
140

Views

VBA Script to remove all lines other then my filtered values

I am currently in the process of creating a VBA Script where i extract a list of raw data and filter out values Apple, Banana, and Oranges. I then delete all the other rows if it is not the values mentioned above. So for example i have apple, banana, orange, grape, mandarin, avocado, coconut, lemon,...
Blackbutterfly
1

votes
1

answer
99

Views

Silverstripe $Children.Filter

I'm working on an eCommerce solution using Silverstripe and the Silvershop module. I'm wanting to display all products in the top level of my shop page, broken down into categories (TShirts, Hats, Programmes...). At the moment I'm getting the induvidual 'ProductCategories' but each category is displ...
mike
1

votes
1

answer
71

Views

MATLAB: How to demodulate a STREAMING audio file rather than a saved audio file?

I wrote the simple MATLAB program below to demodulate an audio signal that has previously been frequency modulated with a carrier frequency of 10000 Hz. The program records the frequency-modulated signal, stores it on disc (for possible later use), then retrieves and demodulates it. Now I would like...
J. Feinberg
1

votes
1

answer
138

Views

Counting/grouping records in Access query

I encountered an issue while trying to group records in a query. What I need is - after I select DatePeriod from a comboBox - in an underlying subform to have a count of records for each employee within selected date period. Overview Note: for simplicity, I used two fields only. Main Form has...
Vedran
1

votes
1

answer
120

Views

how does filter2D works in image processing for RGB image to calculate matrix output manually?

I'm newbie in image processing, i have tried to implement filter2D to reduce noise image with RGB color recently, and it works well. But i don't understand how it works manually in image matrix. Anybody can help me to explain how it works manually? This is the input matrix and output matrix i get. I...
Jhames
1

votes
0

answer
30

Views

redirect http from content rules

I would like to redirect HTTP client to multiples internal servers incoming from the same URL based on content. The content is xml, I have a known IDs like Id_Client='xxxxxx' so when Id_Client='xxxxxx' came I would like to redirect to internal server 1 Id_Client='yyyyyy' came I would like to redir...
bunam

View additional questions