Skip to content

Commit be011ce

Browse files
penguianPaul
and
Paul
authored
Create Release 1.12 (#5)
* Turn off the executable file permissions * Save work in progress * Save work in progress: resolving code issues * Save work in progress towards addressing all code issues. * Save work in progress towards addressing all code issues. * Resolve outstanding code issues * Add eq_histogram to info.ins * Change mylookup to lookup_table * Repair formatting * Repair description. Tidy up. * Add description. Add trailing semicolons. * Move lookup_table.m to the private directory * Save work in progress * Save work in progress * Make lookup_s2_region private * Add some help documentation * Improve help documentation * Clean up trailing blanks * Debug. Improve help documentation. * Add eq_histogram/Contents.m * Update documentation for Release 1.12 * Correct the examples. Add missing semicolons. * Correct the examples * Improve help comments * Move eq_area_error.m out of eq_test * Improve help comments * Improve help comments * Move haslight function to eq_illustrations * Move illustrate_eq_algorithm function to eq_illustrations * Correct Contents.m files * Add tests * Move illustrate_eq_algorithm back to eq_partitions * Do not use a cell array for movie_frame * Remove the initial blank frame * Close figures between tests * Add test logs * Add a script to create a test from the help text in a Matlab file * Function changed name from s2x to polar2cart * Remove the OpenGL warning message from the log * Function changed name from s2x to polar2cart * Correct the help text * Trim trailing blanks * Trim trailing blanks * Bring up to date. Use consistent formatting. * Bring up to date * Bring up to date. Delete trailing blanks. * Update the help text * Repair savepathonly by using verLessThan * Set the toolbox installation state to be uninstalled by default * Rename txt files * Update the installation instructions * Update the installation instructions * Update the README file --------- Co-authored-by: Paul <[email protected]>
1 parent d874feb commit be011ce

File tree

153 files changed

+5542
-1047
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+5542
-1047
lines changed

AUTHORS

100755100644
+45-30
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Recursive Zonal Equal Area (EQ) Sphere Partitioning Toolbox.
2+
Release 1.12 2024-10-20
3+
Copyright 2024 Paul Leopardi
24
Release 1.10 2005-06-26
35
Copyright 2004-2005 Paul Leopardi for the University of New South Wales.
46
AUTHORS
@@ -15,71 +17,84 @@ References
1517
----------
1618
[Dahl78] B. E. J. Dahlberg,
1719
"On the distribution of Fekete points",
18-
Duke Math. J. 45 (1978), no. 3, pp. 537--542.
20+
Duke Math. J. 45 (1978), no. 3, pp. 537--542.
1921

2022
[KuiS98]: A. B. J. Kuijlaars, E. B. Saff,
2123
"Asymptotics for minimal discrete energy on the sphere",
2224
Transactions of the American Mathematical Society, v. 350 no. 2 (Feb 1998)
2325
pp. 523--538.
2426

2527
[KuiSS04]: A. B. J. Kuijlaars, E. B. Saff, X. Sun,
26-
"Minimum separation f the minimal energy points on spheres in Euclidean
27-
spaces", (preprint) 2004-11-30.
28-
28+
"On separation of minimal Riesz energy points on spheres in Euclidean spaces."
29+
Journal of computational and applied mathematics 199.1 (2007): 172-180.
30+
2931
[LeGS01]: T. Le Gia, I. H. Sloan,
3032
"The uniform norm of hyperinterpolation on the unit sphere in an arbitrary
3133
number of dimensions", Constructive Approximation (2001) 17: p249-265.
32-
33-
[Leo05]: P. Leopardi,
34+
35+
[Leo06]: P. Leopardi,
3436
"A partition of the unit sphere into regions of equal area and small diameter",
35-
Applied Maths Report AMR05/18, May, 2005, submitted to
36-
Electronic Transactions on Numerical Analysis.
37-
http://www.maths.unsw.edu.au/applied/files/2005/amr05_18.pdf
37+
Electronic Transactions on Numerical Analysis, Volume 25, 2006, pp. 309-327.
38+
39+
[Leo07]: P. Leopardi,
40+
"Distributing points on the sphere: Partitions, separation, quadrature and energy",
41+
PhD thesis, UNSW, 2007.
42+
43+
[Leo09]: P. Leopardi,
44+
"Diameter bounds for equal area partitions of the unit sphere",
45+
Electronic Transactions on Numerical Analysis, Volume 35, 2009, pp. 1-16.
46+
47+
[Leo24]: P. Leopardi,
48+
"The applicability of equal area partitions of the unit sphere",
49+
Journal of Approximation Software, 1(2), 2024.
3850

39-
[Mue98]: C. Mueller, "Analysis of spherical symmetries in Euclidean spaces",
51+
[Mue98]: C. Mueller,
52+
"Analysis of spherical symmetries in Euclidean spaces",
4053
Springer, 1998.
41-
54+
4255
[RakSZ94]: E. A. Rakhmanov, E. B. Saff, Y. M. Zhou,
4356
"Minimal discrete energy on the sphere",
44-
Mathematics Research Letters, 1 (1994), pp. 647--662.
45-
57+
Mathematics Research Letters, 1 (1994), pp. 647--662.
58+
4659
[RakSZ95]: E. A. Rakhmanov, E. B. Saff, Y. M. Zhou,
4760
"Electrons on the sphere",
48-
Computational methods and function theory 1994 (Penang), pp. 293--309,
49-
Ser. Approx. Decompos., 5, World Sci. Publishing, River Edge, NJ, 1995.
50-
61+
Computational methods and function theory 1994 (Penang), pp. 293--309,
62+
Ser. Approx. Decompos., 5, World Sci. Publishing, River Edge, NJ, 1995.
63+
5164
[SafK97]: E. B. Saff, A. B. J. Kuijlaars,
5265
"Distributing many points on a sphere",
5366
Mathematical Intelligencer, v19 no1 (1997), pp. 5--11.
54-
55-
[SafSP]: E. B. Saff, "Sphere Points,"
67+
68+
[SafSP]: E. B. Saff,
69+
"Sphere Points,"
5670
http://www.math.vanderbilt.edu/~esaff/sphere_points.html
5771

58-
[Saf03]: Ed Saff, "Equal-area partitions of sphere",
72+
[Saf03]: Ed Saff,
73+
"Equal-area partitions of sphere",
5974
Presentation at UNSW, 2003-07-28.
60-
75+
6176
[Slo03]: Ian Sloan, "Equal area partition of S^3", Notes, 2003-07-29.
6277

63-
[WeiMW]: E. W. Weisstein,
78+
[WeiMW]: E. W. Weisstein,
6479
"Hypersphere." From MathWorld--A Wolfram Web Resource.
6580
http://mathworld.wolfram.com/Hypersphere.html
6681

67-
[Zho95]: Y. M. Zhou, "Arrangement of points on the sphere",
68-
Thesis, University of South Florida, 1995.
82+
[Zho95]: Y. M. Zhou,
83+
"Arrangement of points on the sphere",
84+
PhD thesis, University of South Florida, 1995.
6985

70-
[Zho98]: Y. M. Zhou, "Equidistribution and extremal energy of N points on
71-
the sphere", Modelling and computation for applications in mathematics,
86+
[Zho98]: Y. M. Zhou,
87+
"Equidistribution and extremal energy of N points on the sphere",
88+
Modelling and computation for applications in mathematics,
7289
science, and engineering (Evanston, IL, 1996), pp. 39--57,
7390
Numer. Math. Sci. Comput., Oxford Univ. Press, New York, 1998.
7491

7592
Installation and Utilities
7693
--------------------------
77-
Toolbox Installer 2.2, 2003-07-22 by B. Rasmus Anthin.
94+
Toolbox Installer 2.2, 2003-07-22 by Rasmus Anthin.
7895
Matlab Central File Exchange
79-
http://www.mathworks.com/matlabcentral/fileexchange/
80-
Home page of B. Rasmus Anthin
81-
http://www.etek.chalmers.se/~e8rasmus/
96+
https://au.mathworks.com/matlabcentral/fileexchange/3726-toolbox-installer-2-2
8297

83-
Files modified and relicenced with permission of B. Rasmus Anthin:
98+
Files modified and relicenced with permission of Rasmus Anthin:
8499
./private
85100
install.m uninstall.m

CHANGELOG

100755100644
+31-15
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
Recursive Zonal Equal Area (EQ) Sphere Partitioning Toolbox.
2+
Release 1.12 2024-10-20
3+
Copyright 2024 Paul Leopardi
24
Release 1.10 2005-06-26
35
Copyright 2004-2005 Paul Leopardi for the University of New South Wales.
46
CHANGELOG
57

68
For licensing, see COPYING
79
For references, see AUTHORS
810

11+
Changes between Release 1.10 and Release 1.12 as at 2024-10-20
12+
==============================================================
13+
14+
1) Bring the installer up-to-date with respect to current Matlab.
15+
16+
2) Bring the code up-to-date with respect to current Matlab.
17+
18+
3) Complete the histogram utilities in the eq_histogram directory.
19+
20+
4) Add tests to the eq_test directory.
21+
22+
* Note * The histogram utilities as at Revision 1.11 of 2012-2013
23+
were incomplete, untested, and incorrect.
24+
925
Changes between Revision 1.02 and Release 1.10 as at 2005-06-26
1026
===============================================================
1127

@@ -337,7 +353,7 @@ point_set_props/point_set_energy_dist.m
337353
o r^(-s) energy and minimum distance of a point set
338354

339355
point_set_props/point_set_min_dist.m
340-
o Minimum distance between points of a point set
356+
o Minimum distance between points of a point set
341357

342358
point_set_props/point_set_packing_density.m
343359
o Density of packing given by min dist of a point set
@@ -349,7 +365,7 @@ point_set_props/eq_energy_coeff.m
349365
o Coefficient in expansion of energy of an RZ point set
350366

351367
point_set_props/eq_min_dist.m
352-
o Minimum distance between points of an RZ point set
368+
o Minimum distance between points of an RZ point set
353369

354370
point_set_props/eq_packing_density.m
355371
o Density of packing given by minimum distance of RZ point set
@@ -395,24 +411,24 @@ dist_matrix.m, sphere_dist_matrix.m
395411
o Out of scope.
396412

397413
minus_dist.m, minus_dist_sq.m
398-
o No longer needed.
399-
Were used in constrained nonlinear optimization to estimate diameter.
414+
o No longer needed.
415+
Were used in constrained nonlinear optimization to estimate diameter.
400416

401417
r2s.m, s2r.m
402418
o Duplicates of e2s.m and s2e.m.
403419

404420
region_is_cap.m, region_is_sphere.m
405-
o No longer needed.
406-
Were used to estimate diameter.
421+
o No longer needed.
422+
Were used to estimate diameter.
407423

408424
run_diam_bound_coeff_from.m, run_vertex_diam_bound_coeff_from.m
409425
run_vertex_diam_bound_coeff.m, run_vertex_diam_coeff.m
410-
o Out of scope.
426+
o Out of scope.
411427
Were used for batch jobs run from Linux shell scripts.
412428

413429
5) Use of subfunctions.
414430

415-
The following M files now contain the subfunctions as listed.
431+
The following M files now contain the subfunctions as listed.
416432
As a consequence, the subfunctions no longer exist as separate M files.
417433

418434
illustrations/illustration_options.m:
@@ -428,7 +444,7 @@ illustrations/show_s2_partition.m:
428444
SHOW_S2_REGION
429445

430446
partitions/illustrate_eq_algorithm.m:
431-
OPTION_ARGUMENTS, ILLUSTRATE_STEPS_1_2,
447+
OPTION_ARGUMENTS, ILLUSTRATE_STEPS_1_2,
432448
ILLUSTRATE_STEPS_3_5, ILLUSTRATE_STEPS_6_7
433449

434450
partitions/partition_options.m:
@@ -572,14 +588,14 @@ Now uses normalized font sizes.
572588
o Now use illustrations/illustrate_point_set.m
573589
o Removed unnecessary calls to PACK
574590

575-
10.3) illustrations/show_s2_partition.m, illustrations/show_r3_point_set.m,
591+
10.3) illustrations/show_s2_partition.m, illustrations/show_r3_point_set.m,
576592
o Now use new function SURF_JET to set up extreme values for COLARMAP JET.
577593
Also, SURF_JET uses HASLIGHT to determine if a light already exists,
578594
and only calls CAMLIGHT if there is no existing light.
579595
o Now use new function SHOW_S2_SPHERE to draw the unit sphere S^2.
580596
Also, SHOW_S2_SPHERE sets specular reflection of the unit sphere to 0.
581-
o show_s2_partition now uses PAUSE(0) to build up the illustration
582-
collar-by-collar rather than region-by-region. This is faster.
597+
o show_s2_partition now uses PAUSE(0) to build up the illustration
598+
collar-by-collar rather than region-by-region. This is faster.
583599

584600
10.4) partitions/eq_caps.m
585601
Check for integer dim and N removed.
@@ -625,7 +641,7 @@ area_error.m:
625641
2004-03-23
626642
Simplify by removing options.
627643
2004-01-20
628-
Ensure that routine works whether N is a number or range specified by a row matrix
644+
Ensure that routine works whether N is a number or range specified by a row matrix
629645
.
630646
2004-01-19
631647
Started.
@@ -928,7 +944,7 @@ partsphere.m:
928944

929945
part_to_caps.m:
930946
2004-08-14
931-
Make dim==1 consistent with dim>1 by
947+
Make dim==1 consistent with dim>1 by
932948
returning the longitude of a sector enclosing the
933949
cumulative sum of arc lengths given by summing n_regions.
934950
2004-03-23
@@ -1153,7 +1169,7 @@ Maple revision history
11531169
euclidean_dist functions.
11541170
Clean up conversions s2x and s2r.
11551171
2003-09-26: Plot energy coefficients.
1156-
Fix functions which list energy and energy coefficients:
1172+
Fix functions which list energy and energy coefficients:
11571173
they had incorrect array assignments.
11581174
Gram determinant for S^2 points.
11591175
2003-09-25: Use Euclidean diameters as well as spherical diameters.

COPYING

100755100644
+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
Recursive Zonal Equal Area (EQ) Sphere Partitioning Toolbox.
2-
Release 1.10 2005-06-26
2+
Release 1.12 2024-10-20
33
COPYING
44

55
For references, see AUTHORS.
66
For revision history, see CHANGELOG.
77

8-
Copyright (c) 2004, 2005, University of New South Wales
8+
Copyright 2024 Paul Leopardi
9+
Copyright 2004, 2005, University of New South Wales
910

1011
Permission is hereby granted, free of charge, to any person obtaining
1112
a copy of this software and associated documentation files (the

Contents.m

100755100644
+31-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% Recursive Zonal Equal Area Sphere Partitioning Toolbox.
2-
% Release 1.10 2005-06-26
2+
% Release 1.12 2024-10-14
33
%
44
%Functions by category
55
%=====================
@@ -18,9 +18,9 @@
1818
% eq_regions Recursive zonal equal area (EQ) partition of sphere
1919
%
2020
% Point sets
21-
% eq_point_set Center points of regions of EQ partition,
21+
% eq_point_set Center points of regions of EQ partition,
2222
% in Cartesian coordinates
23-
% eq_point_set_polar Center points of regions of an EQ partition,
23+
% eq_point_set_polar Center points of regions of an EQ partition,
2424
% in spherical polar coordinates
2525
%
2626
% Partition options
@@ -29,6 +29,10 @@
2929
%Properties of recursive zonal equal area sphere partitions
3030
%----------------------------------------------------------
3131
%
32+
% Area
33+
% eq_area_error Total area error and max area error per region of an
34+
% EQ partition
35+
%
3236
% Diameter
3337
% eq_diam_bound Maximum per-region diameter bound of EQ partition
3438
% eq_vertex_diam Maximum vertex diameter of EQ partition
@@ -53,7 +57,7 @@
5357
% calc_energy_coeff Coefficient of second term in expansion of energy
5458
%
5559
% Minimum distance
56-
% eq_min_dist Minimum distance between center points of an
60+
% eq_min_dist Minimum distance between center points of an
5761
% EQ partition
5862
% point_set_min_dist Minimum distance between points of a point set
5963
%
@@ -62,38 +66,46 @@
6266
% calc_dist_coeff Coefficient of minimum distance
6367
%
6468
% Spherical cap packing density
65-
% eq_packing_density Density of packing given by minimum distance of
69+
% eq_packing_density Density of packing given by minimum distance of
6670
% EQ point set
67-
% point_set_packing_density Density of packing given by minimum distance of
71+
% point_set_packing_density Density of packing given by minimum distance of
6872
% a point set
6973
% calc_packing_density Density of packing given by minimum distance
7074
%
7175
% Hook for user-defined properties
7276
% eq_point_set_property Property of an EQ point set
7377
%
78+
%Histogram utilities for S^2
79+
%---------------------------
80+
%
81+
% eq_count_points_by_s2_region Given a set of points, count points in each of N regions of S^2
82+
% eq_find_s2_region Given a set of points, partition S^2 into N regions
83+
% and find the index of the region of containing each point
84+
% in_s2_region Test that each of a set of points on S^2 is within a given region
85+
%
7486
%Illustrations
7587
%-------------
7688
%
89+
% Illustration of algorithms
90+
% illustrate_eq_algorithm Illustrate the EQ partition algorithm
91+
%
7792
% Illustration of EQ Partitions of S^2 or S^3
7893
% show_s2_partition 3D illustration of an EQ partition of S^2
7994
% project_s2_partition Use projection to illustrate an EQ partition of S^2
8095
% project_s3_partition Use projection to illustrate an EQ partition of S^3
8196
%
8297
% Illustration of point sets on S^2 or S^3
8398
% show_r3_point_set 3D illustration of a point set
84-
% project_point_set Use projection to illustrate a point set of
99+
% project_point_set Use projection to illustrate a point set of
85100
% S^2 or S^3
86101
% Illustration of a recursive zonal equal area sphere partition algorithm
87102
% illustrate_eq_algorithm Illustrate the EQ partition algorithm
88103
%
89104
% Illustration options
90105
% illustration_options Options for illustrations of EQ partitions
91106
%
92-
%Tests
93-
%-----
94-
%
95-
% eq_area_error Total area error and max area error per region of an
96-
% EQ partition
107+
% Illustration utilities
108+
% haslight Check if axis handle has a light attached
97109
%
98110
%Utilities
99111
%---------
@@ -106,19 +118,23 @@
106118
% euc2sph_dist Convert Euclidean to spherical distance
107119
% euclidean_dist Euclidean distance between two points
108120
% fatcurve Create a parameterized cylindrical surface
109-
% haslight Check if axis handle has a light attached
110121
% ideal_collar_angle Ideal angle for spherical collars of an EQ partition
111-
% illustration_options Options for illustrations of EQ partitions
112-
% partition_options Options for EQ partition
113122
% polar2cart Convert spherical polar to Cartesian coordinates
114123
% sph2euc_dist Convert spherical to Euclidean distance
115124
% spherical_dist Spherical distance between two points on the sphere
116125
% sradius_of_cap Spherical radius of spherical cap of given area
117126
% volume_of_ball Volume of the unit ball
118127
%
128+
%Tests
129+
%-----
130+
%
131+
% Tests of all functions.
132+
%
119133
% If the previous text scrolled off the screen, try
120134
% more on; help eq_sphere_partitions; more off;
121135

136+
% Copyright 2024 Paul Leopardi
137+
% $Revision 1.12 $ $Date 2024-10-14 $
122138
% Copyright 2004-2005 Paul Leopardi for the University of New South Wales.
123139
% $Revision 1.10 $ $Date 2005-06-26 $
124140
% Function changed name from e2s to euc2sph_dist

0 commit comments

Comments
 (0)