MOA 12.03
Real Time Analytics for Data Streams
|
Java Porting of the Miniball.h code of Bernd Gaertner. More...
Classes | |
class | Miniball_b |
class | pvt |
Public Member Functions | |
Miniball (int dim) | |
void | clear () |
Method clear: clears the ArrayList of the selection points. | |
void | check_in (double[] p) |
Adds a point to the list. | |
void | build () |
Recalculate Miniball parameter Center and Radius. | |
double[] | center () |
Return the center of the Miniball. | |
double | squared_radius () |
Return the sqaured Radius of the miniball. | |
double | radius () |
Return the Radius of the miniball. | |
int | nr_points () |
Return the actual number of points in the list. | |
int | nr_support_points () |
Return the number of support points (used to calculate the miniball). | |
Package Functions | |
void | mtf_mb (int i) |
void | move_to_front (int j) |
void | pivot_mb (int i) |
double | max_excess (int t, int i, pvt pivot) |
int | points_begin () |
int | points_end () |
int | support_points_begin () |
int | support_points_end () |
double | accuracy (double slack) |
boolean | is_valid (double tolerance) |
double | mb_sqr (double r) |
Package Attributes | |
int | d |
ArrayList | L |
Miniball_b | B |
int | support_end = 0 |
Java Porting of the Miniball.h code of Bernd Gaertner.
Look at http://www.inf.ethz.ch/personal/gaertner/miniball.html
and related work at http://www.inf.ethz.ch/personal/gaertner/texts/own_work/esa99_final.pdf
for reading about the algorithm and the implementation of it.
If interested in Bounding Sphere algorithms read also published work of Emo Welzl "Smallest enclosing disks (balls and Ellipsoid)" and the work of Jack Ritter on "Efficient Bounding Spheres" at
http://tog.acm.org/GraphicsGems/gems/BoundSphere.c?searchterm=calc
For Licencing Info report to Bernd Gaertner's one reported below:
Copright (C) 1999-2006, Bernd Gaertner
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA,
or download the License terms from prep.ai.mit.edu/pub/gnu/COPYING-2.0.
Contact:
--------
Bernd Gaertner
Institute of Theoretical Computer Science
ETH Zuerich
CAB G32.2
CH-8092 Zuerich, Switzerland
http://www.inf.ethz.ch/personal/gaertner
Original Java port from Paolo Perissinotto for Jpatch Project by Sascha Ledinsky found at http://forum.jpatch.com/viewtopic.php?f=3&t=919
used for moa for calculating most compact sphere cluster modified by Timm Jansen ([email protected]) to be used with high dimensional points
Definition at line 61 of file Miniball.java.
moa.cluster.Miniball.Miniball | ( | int | dim | ) |
Definition at line 68 of file Miniball.java.
double moa.cluster.Miniball.accuracy | ( | double | slack | ) | [package] |
Definition at line 393 of file Miniball.java.
Referenced by moa.cluster.Miniball.is_valid().
void moa.cluster.Miniball.build | ( | ) |
Recalculate Miniball parameter Center and Radius.
Definition at line 258 of file Miniball.java.
Referenced by moa.cluster.SphereCluster.SphereCluster().
double [] moa.cluster.Miniball.center | ( | ) |
Return the center of the Miniball.
Definition at line 340 of file Miniball.java.
Referenced by moa.cluster.SphereCluster.SphereCluster().
void moa.cluster.Miniball.check_in | ( | double[] | p | ) |
Adds a point to the list.
Skip action on null parameter.
p | The object to be added to the list |
Definition at line 245 of file Miniball.java.
Referenced by moa.cluster.SphereCluster.SphereCluster().
void moa.cluster.Miniball.clear | ( | ) |
Method clear: clears the ArrayList of the selection points.
Use it for starting a new selection list to calculate Bounding Sphere on
or to clear memory references to the list of objects.
Always use at the end of a Miniball use if you want to reuse later the Miniball object
Definition at line 236 of file Miniball.java.
Referenced by moa.cluster.SphereCluster.SphereCluster().
boolean moa.cluster.Miniball.is_valid | ( | double | tolerance | ) | [package] |
double moa.cluster.Miniball.max_excess | ( | int | t, |
int | i, | ||
pvt | pivot | ||
) | [package] |
Definition at line 317 of file Miniball.java.
Referenced by moa.cluster.Miniball.pivot_mb().
double moa.cluster.Miniball.mb_sqr | ( | double | r | ) | [package] |
Definition at line 422 of file Miniball.java.
Referenced by moa.cluster.Miniball.Miniball_b.excess(), moa.cluster.Miniball.max_excess(), and moa.cluster.Miniball.Miniball_b.push().
void moa.cluster.Miniball.move_to_front | ( | int | j | ) | [package] |
Definition at line 284 of file Miniball.java.
Referenced by moa.cluster.Miniball.mtf_mb(), and moa.cluster.Miniball.pivot_mb().
void moa.cluster.Miniball.mtf_mb | ( | int | i | ) | [package] |
Definition at line 264 of file Miniball.java.
Referenced by moa.cluster.Miniball.pivot_mb().
int moa.cluster.Miniball.nr_points | ( | ) |
Return the actual number of points in the list.
Definition at line 364 of file Miniball.java.
int moa.cluster.Miniball.nr_support_points | ( | ) |
Return the number of support points (used to calculate the miniball).
It's and internal info
Definition at line 381 of file Miniball.java.
Referenced by moa.cluster.Miniball.accuracy().
void moa.cluster.Miniball.pivot_mb | ( | int | i | ) | [package] |
Definition at line 295 of file Miniball.java.
Referenced by moa.cluster.Miniball.build().
int moa.cluster.Miniball.points_begin | ( | ) | [package] |
Definition at line 368 of file Miniball.java.
Referenced by moa.cluster.Miniball.accuracy(), and moa.cluster.Miniball.mtf_mb().
int moa.cluster.Miniball.points_end | ( | ) | [package] |
Definition at line 372 of file Miniball.java.
Referenced by moa.cluster.Miniball.accuracy(), and moa.cluster.Miniball.build().
double moa.cluster.Miniball.radius | ( | ) |
Return the Radius of the miniball.
Definition at line 356 of file Miniball.java.
Referenced by moa.cluster.SphereCluster.SphereCluster().
double moa.cluster.Miniball.squared_radius | ( | ) |
Return the sqaured Radius of the miniball.
Definition at line 348 of file Miniball.java.
Referenced by moa.cluster.Miniball.accuracy().
int moa.cluster.Miniball.support_points_begin | ( | ) | [package] |
Definition at line 385 of file Miniball.java.
int moa.cluster.Miniball.support_points_end | ( | ) | [package] |
Definition at line 389 of file Miniball.java.
Miniball_b moa.cluster.Miniball.B [package] |
Definition at line 65 of file Miniball.java.
Referenced by moa.cluster.Miniball.accuracy(), moa.cluster.Miniball.build(), moa.cluster.Miniball.center(), moa.cluster.Miniball.max_excess(), moa.cluster.Miniball.Miniball(), moa.cluster.Miniball.mtf_mb(), moa.cluster.Miniball.nr_support_points(), moa.cluster.Miniball.pivot_mb(), moa.cluster.Miniball.radius(), and moa.cluster.Miniball.squared_radius().
int moa.cluster.Miniball.d [package] |
Definition at line 63 of file Miniball.java.
Referenced by moa.cluster.Miniball.Miniball_b.excess(), moa.cluster.Miniball.max_excess(), moa.cluster.Miniball.Miniball(), moa.cluster.Miniball.mtf_mb(), moa.cluster.Miniball.Miniball_b.push(), moa.cluster.Miniball.Miniball_b.reset(), and moa.cluster.Miniball.Miniball_b.slack().
ArrayList moa.cluster.Miniball.L [package] |
Definition at line 64 of file Miniball.java.
Referenced by moa.cluster.Miniball.accuracy(), moa.cluster.Miniball.check_in(), moa.cluster.Miniball.clear(), moa.cluster.Miniball.max_excess(), moa.cluster.Miniball.Miniball(), moa.cluster.Miniball.move_to_front(), moa.cluster.Miniball.mtf_mb(), moa.cluster.Miniball.nr_points(), moa.cluster.Miniball.pivot_mb(), and moa.cluster.Miniball.points_end().
int moa.cluster.Miniball.support_end = 0 [package] |
Definition at line 66 of file Miniball.java.
Referenced by moa.cluster.Miniball.accuracy(), moa.cluster.Miniball.build(), moa.cluster.Miniball.move_to_front(), moa.cluster.Miniball.mtf_mb(), moa.cluster.Miniball.pivot_mb(), and moa.cluster.Miniball.support_points_end().