Questions tagged [matching]
For questions related to pattern matching, using character sequences or tree structures. In contrast to pattern recognition, the match described here usually has to be exact.
matching
2,740
questions
0
votes
0
answers
37
views
Applying weights instead of matching [migrated]
I want to conduct a Difference-in-Differences (DiD) design study. I have two groups (which you can see in the sector_eu_without variable) that I want to keep equal regarding certain variables: sex, ...
2
votes
2
answers
67
views
excel - how to pick the whole row using randbetween
I'm trying to pick a random row from my dataset shown below.
I'm wanting to pick out 2 rows from the list at random, with column C being the column that is randomized and column D to match with the ...
0
votes
0
answers
19
views
Google Earth Engine: error "Invalid type. Expected type: Number" trying to compute a Number while performing histogram matching on satellite images
I am working on satellite imagery on Google Earth Engine (JavaScript), and I'm experiencing some issues while I try to perform histogram matching on two images from two different time periods.
In ...
1
vote
1
answer
52
views
Using for loops, while, tidyverse, or packages to create a dataset with matching characteristics from a previous one (sampling) [closed]
I'm working with panel data. We assessed children in 2019 and 2020. Therefore, I have two datasets (2019 and 2020) and I want to create a third dataset matching the data from the second dataset (2020) ...
0
votes
1
answer
33
views
Why does multiple sequence of wildcard characters not work in re.search?
I am trying to use re.search but with multiple wildcard characters and it does not work. Is there something else I have to do? Or is there a better method?
import re
pattern = '2A-CS-*.GPM.DPR.V*'
...
5
votes
5
answers
135
views
Capturing all matches of a string value from an array of regex patterns, while prioritizing closest matches
Let's say I have an array of names, along with a regex union of them:
match_array = [/Dan/i, /Danny/i, /Daniel/i]
match_values = Regexp.union(match_array)
I'm using a regex union because the actual ...
0
votes
0
answers
19
views
My IV summary in R reports as NA after imputing with mice and matching with Amelia
After imputing and matching, my IV of interest returns NAs.
I have a dataset that is mostly complete but for a couple of variables - coord1D and cinc. I used the following code to create my ...
0
votes
1
answer
36
views
Excel VBA to match cell colors and return a value on another cell
I'm a newbie here and in VBA as well. I'm not sure if my question has been answered in another forum but I didn't find any. Here's my problem, in Excel, Column A contains multiple coloured cells from ...
0
votes
0
answers
29
views
Convert a Graph to a Good Graph using Maximum Mathcing in Bipartite Graphs Algorithm
Consider a graph G=(V,E) where a vertex v∈V is designated as the center if it is connected to every other vertex u∈V, such that both uv and vu are present in E. A graph is deemed 'good' if it has a ...
1
vote
3
answers
82
views
Compare if a value from one dataframe is in the list of values of another
Consider these two dfs:
df1 = pd.DataFrame({
'Id': {0: 101, 1: 102, 2: 103, 3: 104},
'Number': {0: 'A1', 1: 'A2', 2: 'B1', 3: 'B1'}})
Id Number
0 101 A1
1 102 A2
2 103 B1
3 104 ...
0
votes
1
answer
44
views
How do you configure OpenSearch to allow finding exact matches with quotes
I'm trying to solve how an OpenSearch index and its mappings must be configured to allow searching with quotes to find an exact match of the search term.
Currently, all fields are of type text and no ...
1
vote
0
answers
31
views
Nuxt3 - Specify page at runtime
I'm trying to programatically change which page in the /pages directory matches at runtime.
E.g. there are two page components defined in the /pages directory:
/pages/index.vue
/pages/page-wide.vue
...
0
votes
0
answers
28
views
PAD ExcelData (DataTable) Match
I'm working on a Flow and am getting stuck on the next action I'm wanting to take. Essentially, the flow in PAD (Power Automate Desktop) goes to a specific folder and looks for a file. From there, it ...
0
votes
0
answers
45
views
How to generate textureless areas and disparity discontinuity areas of a disparity map
I want to use the Middlebury classic data set to test the performance of my own improved stereo matching algorithm. However, only the 2003 data sets (cones and teddy) on the official website contain ...
0
votes
0
answers
30
views
Determine the next position of the proper prefix of the pattern string
When I learn Knuth–Morris–Pratt algorithm, I got a function f from the book Fundamentals of Data Structures in C.
If p="p0 p1 ...p(n-1)" is a pattern, then its failure function, f, is ...