Don't use this tag. If you have questions about cartesian products (e.g. SQL, Spark, Datatables, heterogeneous tuples), use `cartesian-product` tag. If you have questions about planar geometry / 3D-graphics, use `cartesian-coordinates` tag.
Questions tagged [cartesian]
245 questions
0
votes
1 answer
Find 4 points equidistant from a centroid in 3D space where all points lie on a predefined plane
I have a plane defined as an xyz vector and a point that lies on the plane.
I would like to generate xyz coordinates for 4 points (N_points) on the plane surrounding the defined point (centroid) at a defined distance/radius (r).
My current solution…

JoshuaBox
- 735
- 1
- 4
- 16
0
votes
1 answer
Tensorflow equivalent of this numpy axis-wise cartesian product for 2D matrices
I currently have code that allows one to take a combinatorial (cartesian) product across a particular axis. This is in numpy, and originated from a previous question Efficient axis-wise cartesian product of multiple 2D matrices with Numpy or…

undercurrent
- 285
- 1
- 2
- 12
0
votes
2 answers
Find out "outer" corners from set of x,y points
I need some help with defining the "outer" corner points of a set of detected corner points.
I have implemented hough transform in javascript, to detect lines in an image with a perspective-deformed rectangle. After some filtering, the most…

Stef van Wijchen
- 79
- 7
0
votes
1 answer
Is there any Java Framework to manipulate/draw a Cartesian plane?
I would like to know if there is any Java Framework or resource to draw and/or manipulate a Cartesian Plane. Obviously, it can be done using just Java 2d, but implement some resources like "zoom in" and "zoom out" are not so trivial to…

deniswsrosa
- 2,421
- 1
- 17
- 25
0
votes
0 answers
Cartesian coordinates/Matrix: How to determine if coordinates form a closed link
I'm having trouble forming an algorithm to determine if neighbouring coordinates form a closed link (I don't know how to describe this encapsulation), take a look at the screenshots:
Closed Link
My algorithm (which most probably is wrong) goes like…

Ricky Khoo
- 1
- 1
0
votes
1 answer
Mysql Cartesian Product: Each relationship only once
I wonder if someone could help me here.
This is what I need to do:
Pulling the IDs of the language table in new table with unique relationsships between all of them. Like the formula n(n-1) for nodes.
I tried with a cartesian product, but it…

Ameliore
- 1
- 1
0
votes
2 answers
Java: Distance between two points always returning zero
I am writing a method in the class "CartesianPoint" that finds the distance between two Cartesian points. Whenever I call this, the distance that is printed out is always zero, no matter which points I use. I believe that the new point I create to…

Jake Shearer
- 3
- 3
0
votes
1 answer
Rewrite Query with Cartesian product
I am not a developer, so need help in rewriting this Query without a inner join as i think that is the core issue. This runs over 20 seconds. Smaller chunks run in under a second. Pl help.
select a.compID, b.InitialRT, b.VwRgts, b.UpdRgts,…

Manny
- 1
0
votes
1 answer
I need to write a SQL statement with a sub-query and multiple inner joins
I need to join multiple tables for the data I want. However, two fields exists on separate tables that, when the query is executed, returns a cartesian product, grossly inflating the actual count of my data. I need a different column from two…

firstinten
- 19
- 3
0
votes
2 answers
oracle show table like cartesian coordinate system
I have a table
create table test_table(
id number(10),
x number(10),
y number(10),
svalue number(10));
with filling a table as
declare
i integer;
begin
i := 0;
for x in 1 .. 10 loop
for y in 1 .. 10 loop
i := i + 1;
…

osydorchuk
- 143
- 2
- 12
0
votes
0 answers
MySql - Generating a Cartesian product of a single table
I have a single table "Data" in my MySQL database. This contains the following structure:
CID | CVALUE
------------------
1 | 1A
1 | 1B
1 | 1C
2 | 2A
2 | 2B
3 | 3A
4 | 4A
4 | 4B
4 | 4C
5 | 5A
5 | 5B
I need a cartesian…

Kim Smith
- 105
- 8
0
votes
1 answer
How to achieve cartesian product joins in strict mode in Hive?
As you know in strict mode, Hive does not allow cartesian product joins, but can we achieve it in another way in that mode?

Coinnigh
- 611
- 10
- 18
0
votes
4 answers
Avoid cartesian queries - find a proper "where clause"
The following code generates alter password statements to change all standard passwords in an Oracle Database. In version 12.1.0.2.0 it’s not possible anymore to change it to in invalid Password values. That’s why I had to build this switch case…

r0tt
- 379
- 3
- 20
0
votes
1 answer
Excel - 3D cartesian points - euclidean distance for a large group of points
I have a large set of XYZ Cartesian points in Excel (some 40k actually) and was looking for a formula or macro to compare every point to every other point to get the distances between them.
The math to get the distance value between two 3D points…

Cyclone
- 1
- 1
- 3
0
votes
1 answer
Why doesn't this modified Cartesian Product function for Python work?
Ideally, the input is [1,2], and the output is all combinations [[1,1], [2,2], [1,2], [2,1]]. Basically, print all possible combinations with replacement.
def cart(lst):
if lst == []:
return [[]]
return [x[i:] + [lst[0]] + x[:i] for x…

Adrienne
- 2,540
- 1
- 29
- 39