Macaulay2 » Documentation
Packages » EuclideanDistanceDegree » averageNumericEDDegree
next | previous | forward | backward | up | index | toc

averageNumericEDDegree -- compute average ED degrees using sampled data

Description

Generate data samples using the given function and uses homotopy continuation to find critical points of the distance function. The average number of real critical points after $n$ trials is returned. This method creates a NumericalComputationOptions object and computes critical points using the homotopyEDDegree method. By default, `random(RR)` is used to generate data samples. Points are tested using the realPoints function from the NumericalAlgebraicGeometry package, a tolerance can be passed along using the `Tolerance` option, by default it is 1e-6.

i1 : R = QQ[x,y];
i2 : F = G = {x^2 + y^2 - 1};
i3 : sampleGen = () -> apply(#gens R, i -> random(RR));
i4 : aED = averageNumericEDDegree(F, G, 10, SampleGenerator => sampleGen)

o4 = 1.9

o4 : RR (of precision 53)

Menu

Ways to use averageNumericEDDegree:

  • averageNumericEDDegree(List,List,ZZ)

For the programmer

The object averageNumericEDDegree is a method function with options.


The source of this document is in EuclideanDistanceDegree.m2:534:0.