Questions tagged [compare]
The analysis required to assess the differences and similarities between two or more entities.
9,727
questions
0
votes
0
answers
13
views
is it possible to find a small image in a big image faster than this way?
I need to get the coordinate of a image on the screen.
I use gdi to capture the screen to get big image data, and load small image data from file.
I compare two images with follow code,but it is too ...
0
votes
1
answer
44
views
How can I compare two lists of strings in python?
I am trying to compare two lists of number plates. If the number plate is in both lists I want to print the number plate and the time. And if the number plate only exists once in one of the lists, I ...
-1
votes
1
answer
24
views
R Compare two matrices and if equal then replace with another column
I have these two matrices. (It is an example; actually the matrix has several items)
matrix1:
Samples Name
ab_745 jhjf
cd333 kdwo
fn_487 asjd
aa482 ijaf
matrix2:
Nr ...
0
votes
1
answer
24
views
How to compare two objects using JavaScript language and return a number between 0 and 100 representing the percentage of similarity as the result
I followed this tutorial (https://www.tutorialspoint.com/compare-two-objects-in-javascript-and-return-a-number-between-0-and-100-representing-the-percentage-of-similarity) to be able to compare two ...
-2
votes
1
answer
30
views
How to compare data in two databases [closed]
I have two relative small databases using SQL Server 2012. They should have identical data but I am not sure. What are the best and free way to compare the data ?
Edit
In SQL Server 2022 there seems ...
0
votes
0
answers
45
views
Compare Two List an each cell has other list - Python 3.9
import pandas as pd
dataFrom_IPs = pd.read_csv(r'C:\xxx\xx\ggg\Ips.csv',sep=';')
listA = []
listB=[]
Equals=[]
Diff=[]
dataFrom_IPs
list_Host = dataFrom_IPs['host'].tolist()
list_Ips = ...
0
votes
1
answer
40
views
Comparing a list element with all others list's elements in search for equal values [closed]
I have a LIST with 240 time series.
two pairs in that list are EQUAL, let's suppose list[4] is equal to list[36] and list[105] is equal to list[208]
let's also suppose I don't know that these pairs ...
-1
votes
0
answers
22
views
Iterate over rows in pandas dataframe , compare the values and store the values in another dataFrame
I have a python dataframe stored with columns from a database.
I need to iterrate over the rows ,compare the ratios and all the columns in another dataframe.
Conditions that needs to be checked are ...
0
votes
2
answers
20
views
How to check if date equals today's date in component template
I'm showing a list of news on the page and want to print word "Today" if news date is equals to today's date otherwise print the full date on the page. Are there any ways to compare news....
-1
votes
0
answers
22
views
Simulink models comparison issue
I'm comparing two simulink models and in the report i'm getting the following difference. I don't really figure out what that difference is.
Any idea is appreciated
2
votes
3
answers
44
views
Compare two cells and show the changes in another cell
I'm trying to compare two sentences in different cells and show the difference in red.
My code is comparing the position of each letter. When it finds a difference it shows it in red which is fine.
...
-2
votes
0
answers
21
views
Compare value of array in object and group it based on the value to a new object [closed]
I have an array
[
{"id":1, "customer_name":"Taco"},
{"id":2, "customer_name":"Taco"},
{"id":3, "customer_name":&...
0
votes
0
answers
6
views
Want to look at two versions SYNCED
I want to open two windows/columns and have them be two different versions.
I want to OPEN TWO DIFFERENT FOLDERS side by side
I want to be able to scroll synchronized between the windows so I can look ...
0
votes
0
answers
15
views
Does diffchecker site store your pasted text on server?
When you paste your texts for comparison purpose, does diffchecker store and keep those texts?
-2
votes
2
answers
58
views
Compare two lists and increase the counter on a match with java streams
I have two lists. list1 contains some citiys.
list2 contains sub-lists. Each sub-list contains the countries already visited by a person (one sub-list = the countries visited by one person). In the ...
-1
votes
2
answers
50
views
How to compare two strings in C# where the beginning part of one is the end of the other
I have two strings, e.g.:
str1 = "CGGCAGTGGTAGTCTGAG"
str2 = "TGAGCGCGCGCGCGCGCG"
I want to get the two strings same part "TGAG"
0
votes
2
answers
35
views
How to compare two dates in a text string in excel?
I have a set of data with this format:
Each cell has one or some names, each of them are followed by a date. I want to compare the dates which are presented in each cell and check whether they are the ...
1
vote
1
answer
32
views
Compare even and odd rows in a Pandas Data Frame
I have a data frame like that :
Index
Time
Id
0
10:10:00
11
1
10:10:01
12
2
10:10:02
12
3
10:10:04
12
4
10:10:06
13
5
10:10:07
13
6
10:10:08
11
7
10:10:10
11
8
10:10:12
11
9
10:10:14
13
I ...
0
votes
1
answer
11
views
How to differentiate a value's data type by using typeof in JS especially for null and actual object?
I came across a situation where I'm not able to solve it, maybe it's easy for someone.
API response [{a: null, b: 'example'}, {a: {c: 'example'}, b: 'example'}]
How to differentiate the 'a' field ...
-1
votes
1
answer
59
views
Compare multiple ID's and pull data from table
-How to alter this script so it compares multiple values(ID's) on Worksheet("Theorie")(A11:A17) with ("DATA")(A1),pulls values from columns B,C,D,E,H,I and J on sheet ("DATA&...
0
votes
1
answer
20
views
Get output with flag if same record comes next time in informatica power center
I need to put flag if records again comes from source in informatica power center
This need to achieve in informatica power center. After that I will use filter transformation to pass only flag =1 ...
-1
votes
3
answers
51
views
How to comparing two big files on unique strings using fgrep/comm?
I have two files. A file disk.txt contains 57665977 rows and database.txt 39035203 rows;
To test my script I made two example files:
$ cat database.txt
01fffca9-05c8-41a9-8539-8bb2f587cef2
02fffd0d-...
1
vote
1
answer
27
views
How to compare two arrays and then return the sum of all elements of the array before the changed element of the array
I have two arrays that I need to check the difference upon and return the sum of all elements of the array before the changed element and includes him.
I currently have two arrays of area height that ...
0
votes
0
answers
5
views
[spreadsheet][libreoffice-calc] Efficient checks of: 1. row number between columns; 1. formulas between rows in same columns
I looked up how I can check efficiently whether:
I. the row number of each cell address matches with the row number, e.g.
row number 1: A1 B1 C1 ... AA1
row number 2: A2 B2 C2 ... AA2
etc.
To rule out ...
0
votes
1
answer
28
views
How to sort objects by specific fromula using compareTo
My program should sort the values of persons according to the formula.
(Height + Weight)*30% +score40%
So the array has the 6 elements we need to sort and output.
Issue
I struggle with the ...
2
votes
5
answers
63
views
JS - How can i compare two item in an array with nearly similar string [closed]
Example 1:
I have an array like this
let arrayA = ["task A - memberA", "task A - memberB", "task B - memberA"]
I want to find out if two members doing the same task, ...
0
votes
0
answers
23
views
Bcrypt compare is not working in properly nodejs
I am building an register and login system with nodejs. but when I try to bcrypt compare in both register and login, both of them not working. here is my code
const express = require('express')
const ...
0
votes
2
answers
63
views
Excel compare input text to cell and get row
I am trying to take an input for a user text box and if the same as what is in column B insert the data from a different user text box2 and insert into column E.
I can get it to go in to the next ...
0
votes
1
answer
32
views
Create new cols by comparing values from old cols
Input dataframe:
Item
L
W
H
I1
3
5
8
I2
2
1
2
I3
6
9
1
I4
7
3
4
The output dataframe should be as below. Create 3 new columns: L_n, W_n, H_n by checking the values from L, W, H cols. L_n is the ...
0
votes
1
answer
29
views
Why won't this function recognize when an item exists in both lists and when it doesn't C#?
I have 2 lists, each filled with file names. Some of the files in list1 are in list2 but some aren't. As a result I am trying to make a function that goes through list1, and if the file is in list1 ...
1
vote
2
answers
30
views
How to set values for cards in a card deck and compare which one has "higher" or "lower" value?
How to compare card values or even store them ?
I'm pulling data from an API that gives me 1 card - and then I want to compare their values to see which one is higher with the next card.. how can I do ...
0
votes
2
answers
58
views
Compare YYYYmm string with DateTime in C#
I have YYYYmm string and i want to compare datetime.
(MyDateTimeDate.Year == int.Parse(MyStringDate.Substring(0, 4))) &&
(MyDateTimeDate.Month > int.Parse(MyStringDate.Substring(...
-1
votes
1
answer
66
views
LINQ Except not returning string values correctly
I've been trying to create a small program to compare two collections of strings and to output any items that are different or missing between collection1 and collection2.
As far as I have been able ...
1
vote
1
answer
15
views
R: Compare a row to all the rows that come before it
I have a dataframe that looks something like the following. For each row within a group, I would like to compare the ID to the ID of all rows before it. In a new column, the value would be "TRUE&...
0
votes
4
answers
49
views
Checking for "triplicates" strings in JavaScript array
trying to find the best way to check for triplicates values inside an array of strings.
I found many stackoverflow solutions for duplicates values which is not the case in here.
This is the farest i ...
0
votes
2
answers
30
views
Compare y-values when having different x-values
I try to calculate true positive and negative and false positive and negative. For this, I want to compare the y-values of the functions. Both have as x-value, time, but 1 has 600001 values in 1200 ...
-1
votes
2
answers
57
views
Compare two Lists of different object types based on matching property in java 8
I have two Lists of type:
class User {
Long userId;
String userName;
Long workflowStatusId;
}
class WorkflowStatus {
Long workflowStatusId;
String workflowStatusName;
Long ...
0
votes
1
answer
40
views
Compare javascript arrays of objects and set specific values which applies to both additions and deletions from main array source
Given the following array setup:
let myArray1 = [
{"name": "F1"},
{"name": "F2"},
{"name": "F3"},
{"name": "...
1
vote
2
answers
76
views
Comparing Lists of Lists of strings where order doesn't matter
The idea behind my CheckOrder() method is to compare two Lists of string Lists by seeing if the first List contains a List from the second List. If so, it removes the List from the second List, so ...
0
votes
0
answers
21
views
Chi squared test to compare 2 empirical distributions
I have two one-dimensional empirical distributions (binned) and I want to compare them with the Chi-squared test to test the null hypothesis that they are similar and, eventually, reject it.
How can I ...
0
votes
1
answer
40
views
Flutter : Compare int with list<Map<String,int>>
If anyone is able to help, thank you.
This is the list I want to compare with
[{"quote":3,"money":3000}, {"quote":6,"money":7000}, {"quote":8,"...
0
votes
0
answers
20
views
Is there any standard python functions for comparing two dictionary?
I Have two dictionary and i want to compare them to understand which item added or deleted or modified it's value.
I write a class for doing compare two dict.
class CompareTwoDict:
def __init__(...
0
votes
1
answer
35
views
Compare 2 files in Python and extract differences as a strings
I am trying to extract as strings all the differences in 2 files with Python. For example by doing this:
import difflib
first_file_lines = open('first_file', encoding='utf-8').readlines()
...
0
votes
2
answers
49
views
How to convert/parse string array to double?
I have a string array with text and numbers. I extracted a number from it but I can't get it into an int or double variable to use later for comparing or anything.
Instead, I used Compare method which ...
0
votes
1
answer
36
views
Procmail filtering by Date: field
I need to move away mails older than given time - let it be 24h = 86400s. I use old good procmail for multiple other purposes on that machine, so I wanted to use is as well for this purpose. It also ...
-1
votes
2
answers
40
views
Find mismatch in all columns between two rows linked by another column in dataframe
I have a large df with many columns and rows, with usually two rows per certain identifier as df is used for reconciliation.
Is there any way to streamline identification of non-identifier columns ...
1
vote
1
answer
17
views
To check if few values in dataframe column exists in another dataframe column
I am trying to check if values present in df1 column is present in df2 column.
df2 contains more values than df1 and cant use for loop
import pandas as pd
df1 = pd.DataFrame({'one': [2,4,6,8]})
df2 = ...
0
votes
1
answer
27
views
Two lists, with identical objects, exclude objects based on "count"
I have a bit of an issue finding a solution for a problem.
I have 2 lists, they have identical objects, but not the same amount of objects. So to give a quick example:
List1: Object1(ID (1), Name (...
0
votes
2
answers
40
views
What is happening in this pointer to string compare function?
int compare(const void *a, const void *b)
{
const char **str_a = (const char **)a;
const char **str_b = (const char **)b;
return strcmp(*str_a, *str_b);
}
I know that this function is ...
1
vote
1
answer
29
views
How to put value on highcharts compare option in R
I have this code
serie <- data.frame(date=c("2022-01-01","2022-01-02","2022-01-03"),serie2=c(1,2,5), serie3=c(4,6,7))
serie$date <- as.Date(serie$date)
serie <- ...