Minkowski Sum 1.0
File ID: 84117
Minkowski Sum 1.0 Description
Description: S=MINKSUM(A,B) produces the Minkowski sum of two sets A and B in Euclidean space, the result being the addition of every element of A to every element of B.
[S,D]=MINKSUM(A,B) returns the Minkowski sum S, and also the multiplicity of each element in S.
The number of columns represent the dimensionality. An array of M points in N-D space is an MxN array. A vector of 1D values is a column vector.
If the sizes of A and B are MAxN and MBxN respectively, then the size of S will be at most (MA*MB)xN
A=[1 1; 2 1; 2 2; 1 2]; B=[3 3; 4 3; 4 4; 3 4];
axis([0 7 0 7])
Related: values, Column, Vector, points, dimensionality, Array, sizes, plota, Axis
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB
|More Similar Code|
Disclosed are methods to compute the precise value of the logarithm of a sum and the logarithm of a subtraction.
A number of practical problems can result in having too big or small values in intermediate values of a calculation. Then one tries to take logarithm of these values and operate on logarithms instead.
In the case: log (p d-deD? q) = log p + log q is very easy to compute, but the problem is then to compute (or...
Built-in "sum" function, as well as add.reduce functions in Numeric/numarray introduce a large error when summing large arrays of like elements. I got relative error of about 1e-9 after summing 10 million doubles between 0 and 1....
For several different reasons it could occur that we need to produce a signal from the sum of several harmonic components. In the usual case of Fourier analysis, FFT and IFFT are likely the best choice. However it could happen that:
Intro: This function generates random samples for k Xi's where Xi>=0 and the sum Xi is fixed at g. We assume that X's are independent and follow an identical distribution with a CDF function myCDF(x) and an inverse CDF function myICDF(p). I...
SUMPDF Probability distribution of the sum of distributions
[S,P,C]=SUMPDF(X1,P1,N1,X2,P2,N2,...) will return the distribution of the sum of distribution P1, at values at X1, N1 times plus the distribution P2, at values in X2, N2...
Computes the partial harmonic sum. Useful for computing the 2nd Frobenius solution in Sturm-Louiville problems.
for cody challenge
Find the sum of all the numbers of the input vector x.
Just copy and paste the code of sum calculator script into your webpage and use it.
How to emulate SQL aggregate functions AVG, COUNT, MAX, MIN and SUM on csv type data files using tools from the standard library.
A subclass of dictionary that ensures that values are nonnegative, less than or equal to 1, and sum to 1. It also gives 0 for any attempt at looking up a key not in it, and purges keys whose associated value falls to 0.
|User Review for Minkowski Sum