Questions tagged [intersection]

Intersection is a term that relates to descriptive geometry and functions. Intersections are points which are included in multiple objects. They are intersections of the object they belong to.

2483 questions
0
votes
1 answer

Intersection of Entities

I want to create a while loop to Translate some entities which have intersections with each other. But the Entity.Intersects() method is protected. Is there any other solution to find intersections with Eyeshot methods? My entities are Region in…
Mohicode
  • 1
  • 4
0
votes
3 answers

What is best way of finding array element intersection on rxjs

I know There is includes Operator on JavaScript Array. So, Finding common elements from two other Arrays is no Problem. (https://stackoverflow.com/a/1885569/11455650) Then, What is best way for this on rxjs? const obs1$ = from(["foo", "bar", "baz",…
reaver lover
  • 624
  • 7
  • 20
0
votes
1 answer

Plot sensitivity and specificity and find the intersecting point

I managed to get the sensitivity and specificity with respect to cutoff value by help of stack overflow.The link is below. Find a threshold value for confusion matrix in R I made a data df. My goal is to draw smooth graphs of sensitivity and…
Lee
  • 369
  • 1
  • 6
0
votes
1 answer

Python Shapely Polygon Intersects Not Working When I Know Two Polygons Intersect

I know the same question has been answered elsewhere; however, the solution did not work for me. I already have both of my objects as shapely geometry.polygon.Polygon objects. I have two objects that intersect clearly, but are returning False when I…
0
votes
1 answer

Inner join within same collection mongodb

I have a document for each feature (eg:xxx) in a software (eg:opac) release…
0
votes
1 answer

For finding intersection: TypeError: 'float' object is not iterable:

Hi i am working with Pandas and have my two column, i wanted to calculate the Intersection of two columns , When I am trying to : df9['C'] = [len(set(a).intersection(b)) for a, b in zip(df9.Topic1_assignment, df9.Topic2_assignment)] I get a…
Noob Coder
  • 202
  • 3
  • 16
0
votes
1 answer

How to intersect dataframe without added columns?

I am trying to do a simple intersection of dataframes, but no matter the method (pd.merge or pd.concat) I always endup with duplicated columns. Say the two dataframes are: df1 = pd.DataFrame( data = np.stack([ np.arange(4), …
carlitador
  • 47
  • 9
0
votes
0 answers

Calculate 2D plane within 3D array using 3 points

I've been trying to calculate an arbitrary plane shaped intersection in a 3-dimensional array but am unable to find any solution for my problem using C#. I have a 3D array which is basically a stack of images (x and y correspond to the height and…
cubes247
  • 1
  • 2
0
votes
1 answer

How do I fix this JS function so it doesn't return false positives when checking if two line segments intersect?

I'm working on a mapping project (with the Google Maps SDK). Before drawing a line segment on the map I check to see if it intersects with any existing lines. I'm experiencing a situation where the code below is reporting the line segments are…
0
votes
2 answers

How to find the intersection of two or more strings on the commandline

I frequently find myself renaming .flac-files in order to remove abundant information. I write a loop where I edit filenames by manually writing out the part that I want removed. E.g. I have a folder full of files like this: $ ls -l -rw-r--r-- 1 me…
exocortex
  • 375
  • 2
  • 9
0
votes
1 answer

Extract the common rows between multiple dataframes

I am trying to merge multiple dataframes and create a new dataframe containing only the common the rows. For example: The dataframes that i have as input:enter image description here The dataframe that i want to have as output:enter image…
eleni.ps
  • 43
  • 3
0
votes
1 answer

Find intersection of 2 layers containing multiple lines (in python)

I have 2 layers with links and nodes: layer A (yellow) and layer B (blue). I would like to get the places where the lines of layer A intersect with the lines of layer B (red nodes), directly in python. I have the coordinates for all nodes in both…
fschuch
  • 27
  • 1
  • 3
0
votes
1 answer

How to use TiKz to reconstruct a classic perspective illustration

I am trying to reproduce this schematic construction using TiKz. My current code is \documentclass[tikz]{standalone} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture} \node[anchor = south west, inner sep = 0, minimum…
mk9y
  • 320
  • 2
  • 11
0
votes
1 answer

Updating the original HashSet by intersecting with other HashSet, instead of creating a new HashSet

The Rust's HashSet::intersection function creates a new HashSet. How can I update original HashSet by the result of intersection of two HashSets? fn main() { // intersecting two HashSets, creating a new HashSet: OK use…
Larynx
  • 398
  • 1
  • 12
0
votes
1 answer

Creating new variable from several variables with same list of countries

In Stata I have split a variable where up to 20 countries were separated by a comma and now I have twenty different variables (country1 to country20), but the same country is listed in more than one variable country1 to country20. For instance,…
Shri
  • 5
  • 2
1 2 3
99
100