108 lines
8.1 KiB
HTML
108 lines
8.1 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module geosolver.configuration</title>
|
|
</head><body bgcolor="#f0f0f8">
|
|
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
<tr bgcolor="#7799ee">
|
|
<td valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="geosolver.html"><font color="#ffffff">geosolver</font></a>.configuration</strong></big></big></font></td
|
|
><td align=right valign=bottom
|
|
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/rick/Programming/Python/GeoSolver/geosolver/configuration.py">/home/rick/Programming/Python/GeoSolver/geosolver/configuration.py</a></font></td></tr></table>
|
|
<p><tt>This module provides a <a href="#Configuration">Configuration</a> class. <br>
|
|
<br>
|
|
A configuration is a set of named points with coordinates.</tt></p>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#aa55cc">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="math.html">math</a><br>
|
|
</td><td width="25%" valign=top><a href="re.html">re</a><br>
|
|
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
|
</td><td width="25%" valign=top><a href="geosolver.vector.html">geosolver.vector</a><br>
|
|
</td></tr></table></td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ee77aa">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl>
|
|
<dt><font face="helvetica, arial"><a href="geosolver.configuration.html#Configuration">Configuration</a>
|
|
</font></dt></dl>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Configuration">class <strong>Configuration</strong></a></font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A set of named points with coordinates of a specified dimension. <br>
|
|
<br>
|
|
Immutable. Defines equality and a hash function. <br>
|
|
<br>
|
|
Attributes: <br>
|
|
map - a dictionary mapping variable names to point values.<br>
|
|
dimension - the dimension of the space in which the configuration is embedded<br>
|
|
underconstrained - flag indicating an underconstrained merge (not a unique solution)<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="Configuration-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>two configurations are equal if they map onto eachother modulo rotation and translation</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Configuration-__init__"><strong>__init__</strong></a>(self, map)</dt><dd><tt>instantiate a <a href="#Configuration">Configuration</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-__str__"><strong>__str__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Configuration-add"><strong>add</strong></a>(self, c)</dt><dd><tt>return a new configuration which is this configuration extended with all points in c not in this configuration</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-checkdimension"><strong>checkdimension</strong></a>(self)</dt><dd><tt>returns the dimension of the points, or zero if they are of different dimensions</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-copy"><strong>copy</strong></a>(self)</dt><dd><tt>returns a shallow copy</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-get"><strong>get</strong></a>(self, var)</dt><dd><tt>return position of point var</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-makehash"><strong>makehash</strong></a>(self)</dt><dd><tt>the hash is based only on variable names (not values)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-merge"><strong>merge</strong></a>(self, other)</dt><dd><tt>returns a new configurations which is this one plus the given other configuration transformed, such that common points will overlap (if possible).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-merge_scale"><strong>merge_scale</strong></a>(self, other)</dt><dd><tt>returns a new configurations which is this one plus the given other configuration transformed, such that common points will overlap (if possible).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-merge_scale_2D"><strong>merge_scale_2D</strong></a>(self, other, vars<font color="#909090">=[]</font>)</dt><dd><tt>returns a new configurations which is this one plus the given other configuration transformed, such that common points will overlap (if possible).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-merge_scale_transform"><strong>merge_scale_transform</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Configuration-merge_transform"><strong>merge_transform</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Configuration-select"><strong>select</strong></a>(self, vars)</dt><dd><tt>return a new configuration that is a subconfiguration of this configuration, containing only the selected variables</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-transform"><strong>transform</strong></a>(self, t)</dt><dd><tt>returns a new configuration, which is this one transformed by matrix t</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Configuration-vars"><strong>vars</strong></a>(self)</dt><dd><tt>return list of variables</tt></dd></dl>
|
|
|
|
</td></tr></table></td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#eeaa77">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt><a name="-perp2D"><strong>perp2D</strong></a>(v)</dt></dl>
|
|
<dl><dt><a name="-test"><strong>test</strong></a>()</dt></dl>
|
|
</td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#55aa55">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
|
<td width="100%"><strong>NegInf</strong> = geosolver.tolerance.NegInf<br>
|
|
<strong>PosInf</strong> = geosolver.tolerance.PosInf<br>
|
|
<strong>default_tol</strong> = 9.9999999999999995e-07<br>
|
|
<strong>diag_selector</strong> = <_sre.SRE_Pattern object at 0xb7ec9b60><br>
|
|
<strong>diag_stream</strong> = <open file '<stdout>', mode 'w' at 0xb7eb3068></td></tr></table>
|
|
</body></html> |