-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implementing ml in terms of "functors"
- Loading branch information
Showing
57 changed files
with
9,082 additions
and
903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
""" | ||
ImageD11 - image analysis software for beamline ID11 at the ESRF | ||
Copyright (C) 2005 Jon Wright | ||
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 2 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, write to the Free Software | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
""" | ||
|
||
__version__="0.6.1" | ||
__author__='Jon Wright', | ||
__author_email__='[email protected]' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html><head><title>Python: module ImageD11.__init__</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="ImageD11.html"><font color="#ffffff">ImageD11</font></a>.__init__</strong></big></big> (version 0.6.1)</font></td | ||
><td align=right valign=bottom | ||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C|/python24/lib/site-packages/imaged11/__init__.py">c:\python24\lib\site-packages\imaged11\__init__.py</a></font></td></tr></table> | ||
<p><tt>ImageD11 - image analysis software for beamline ID11 at the ESRF<br> | ||
<br> | ||
Copyright (C) 2005 Jon Wright<br> | ||
<br> | ||
This program is free software; you can redistribute it and/or modify<br> | ||
it under the terms of the GNU General Public License as published by<br> | ||
the Free Software Foundation; either version 2 of the License, or<br> | ||
(at your option) any later version.<br> | ||
<br> | ||
This program is distributed in the hope that it will be useful,<br> | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of<br> | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br> | ||
GNU General Public License for more details.<br> | ||
<br> | ||
You should have received a copy of the GNU General Public License<br> | ||
along with this program; if not, write to the Free Software<br> | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</tt></p> | ||
<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>__author__</strong> = ('Jon Wright',)<br> | ||
<strong>__author_email__</strong> = '[email protected]'<br> | ||
<strong>__version__</strong> = '0.6.1'</td></tr></table><p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#7799ee"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> | ||
<td width="100%">('Jon Wright',)</td></tr></table> | ||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html><head><title>Python: module ImageD11._hist</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="ImageD11.html"><font color="#ffffff">ImageD11</font></a>._hist</strong></big></big></font></td | ||
><td align=right valign=bottom | ||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C|/python24/lib/site-packages/imaged11/_hist.pyd">c:\python24\lib\site-packages\imaged11\_hist.pyd</a></font></td></tr></table> | ||
<p></p> | ||
|
||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html><head><title>Python: module ImageD11._splines</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="ImageD11.html"><font color="#ffffff">ImageD11</font></a>._splines</strong></big></big> (version 0.1 )</font></td | ||
><td align=right valign=bottom | ||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C|/python24/lib/site-packages/imaged11/_splines.pyd">c:\python24\lib\site-packages\imaged11\_splines.pyd</a></font></td></tr></table> | ||
<p></p> | ||
<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>__version__</strong> = ' 0.1 '</td></tr></table> | ||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
|
||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html><head><title>Python: module ImageD11.bisplev</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="ImageD11.html"><font color="#ffffff">ImageD11</font></a>.bisplev</strong></big></big></font></td | ||
><td align=right valign=bottom | ||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C|/python24/lib/site-packages/imaged11/bisplev.py">c:\python24\lib\site-packages\imaged11\bisplev.py</a></font></td></tr></table> | ||
<p><tt># THIS CODE COMES FROM THE SCIPY PACKAGE AT www.scipy.org<br> | ||
#<br> | ||
# IT HAS BEEN COPIED TO SAVE YOU HAVING TO INSTALL ALL THE <br> | ||
# OTHER STUFF FROM THERE. <br> | ||
#</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="ImageD11._splines.html">ImageD11._splines</a><br> | ||
</td><td width="25%" valign=top><a href="Numeric.html">Numeric</a><br> | ||
</td><td width="25%" valign=top></td><td width="25%" valign=top></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="-bisplev"><strong>bisplev</strong></a>(x, y, tck, dx<font color="#909090">=0</font>, dy<font color="#909090">=0</font>)</dt><dd><tt>Evaluate a bivariate B-spline and its derivatives.<br> | ||
Description:<br> | ||
Return a rank-2 array of spline function values (or spline derivative<br> | ||
values) at points given by the cross-product of the rank-1 arrays x and y.<br> | ||
In special cases, return an array or just a float if either x or y or<br> | ||
both are floats.<br> | ||
Inputs:<br> | ||
x, y -- Rank-1 arrays specifying the domain over which to evaluate the<br> | ||
spline or its derivative.<br> | ||
tck -- A sequence of length 5 returned by bisplrep containing the knot<br> | ||
locations, the coefficients, and the degree of the spline:<br> | ||
[tx, ty, c, kx, ky].<br> | ||
dx, dy -- The orders of the partial derivatives in x and y respectively.<br> | ||
Outputs: (vals, )<br> | ||
vals -- The B-pline or its derivative evaluated over the set formed by<br> | ||
the cross-product of x and y.</tt></dd></dl> | ||
<dl><dt><a name="-bisplrep"><strong>bisplrep</strong></a>(x, y, z, w<font color="#909090">=None</font>, xb<font color="#909090">=None</font>, xe<font color="#909090">=None</font>, yb<font color="#909090">=None</font>, ye<font color="#909090">=None</font>, kx<font color="#909090">=3</font>, ky<font color="#909090">=3</font>, task<font color="#909090">=0</font>, s<font color="#909090">=None</font>, eps<font color="#909090">=9.9999999999999998e-017</font>, tx<font color="#909090">=None</font>, ty<font color="#909090">=None</font>, full_output<font color="#909090">=0</font>, nxest<font color="#909090">=None</font>, nyest<font color="#909090">=None</font>, quiet<font color="#909090">=1</font>)</dt><dd><tt>Find a bivariate B-spline representation of a surface.<br> | ||
<br> | ||
Description:<br> | ||
<br> | ||
Given a set of data points (x[i], y[i], z[i]) representing a surface<br> | ||
z=f(x,y), compute a B-spline representation of the surface.<br> | ||
<br> | ||
Inputs:<br> | ||
<br> | ||
x, y, z -- Rank-1 arrays of data points.<br> | ||
w -- Rank-1 array of weights. By default w=ones(len(x)).<br> | ||
xb, xe -- End points of approximation interval in x. <br> | ||
yb, ye -- End points of approximation interval in y.<br> | ||
By default xb, xe, yb, ye = x[0], x[-1], y[0], y[-1]<br> | ||
kx, ky -- The degrees of the spline (1 <= kx, ky <= 5). Third order<br> | ||
(kx=ky=3) is recommended.<br> | ||
task -- If task=0, find knots in x and y and coefficients for a given<br> | ||
smoothing factor, s.<br> | ||
If task=1, find knots and coefficients for another value of the<br> | ||
smoothing factor, s. bisplrep must have been previously called<br> | ||
with task=0 or task=1.<br> | ||
If task=-1, find coefficients for a given set of knots tx, ty.<br> | ||
s -- A non-negative smoothing factor. If weights correspond to the inverse<br> | ||
of the standard-deviation of the errors in z, then a good s-value<br> | ||
should be found in the range (m-sqrt(2*m),m+sqrt(2*m)) where m=len(x)<br> | ||
eps -- A threshold for determining the effective rank of an over-determined<br> | ||
linear system of equations (0 < eps < 1) --- not likely to need<br> | ||
changing.<br> | ||
tx, ty -- Rank-1 arrays of the knots of the spline for task=-1<br> | ||
full_output -- Non-zero to return optional outputs.<br> | ||
nxest, nyest -- Over-estimates of the total number of knots. If None then<br> | ||
nxest = max(kx+sqrt(m/2),2*kx+3),<br> | ||
nyest = max(ky+sqrt(m/2),2*ky+3)<br> | ||
quiet -- Non-zero to suppress printing of messages.<br> | ||
<br> | ||
Outputs: (tck, {fp, ier, msg})<br> | ||
<br> | ||
tck -- A list [tx, ty, c, kx, ky] containing the knots (tx, ty) and<br> | ||
coefficients (c) of the bivariate B-spline representation of the<br> | ||
surface along with the degree of the spline.<br> | ||
<br> | ||
fp -- The weighted sum of squared residuals of the spline approximation.<br> | ||
ier -- An integer flag about splrep success. Success is indicated if<br> | ||
ier<=0. If ier in [1,2,3] an error occurred but was not raised.<br> | ||
Otherwise an error is raised.<br> | ||
msg -- A message corresponding to the integer flag, ier.<br> | ||
<br> | ||
Remarks:<br> | ||
<br> | ||
SEE bisplev to evaluate the value of the B-spline given its tck<br> | ||
representation.</tt></dd></dl> | ||
<dl><dt><a name="-myasarray"><strong>myasarray</strong></a>(a)</dt></dl> | ||
</td></tr></table> | ||
</body></html> |
Oops, something went wrong.