Program that computes similarity indices for two scalar fields. More...
#include "apbscfg.h"
#include "apbs/apbs.h"
Go to the source code of this file.
Functions | |
void | usage (int rc) |
Prints usage information and exits. | |
int | invertTransform (double A[3][3], double b[3], double C[3][3], double d[3]) |
Invert coordinate transform (A, b) to find (C, d) such that x = A*y + b y = C*x + d. | |
int | readTransform (char *path, double rotMat[3][3], double dispVec[3]) |
Read transformation from file. | |
int | readGrid (Vgrid **grid, char *path, Vdata_Format format) |
Read a grid. | |
int | main (int argc, char **argv) |
Program that computes similarity indices for two scalar fields.
* * APBS -- Adaptive Poisson-Boltzmann Solver * * Nathan A. Baker (baker@biochem.wustl.edu) * Dept. of Biochemistry and Molecular Biophysics * Center for Computational Biology * Washington University in St. Louis * * Additional contributing authors listed in the code documentation. * * Copyright (c) 2002-2010, Washington University in St. Louis. * Portions Copyright (c) 2002-2010. Nathan A. Baker * Portions Copyright (c) 1999-2002. The Regents of the University of California. * Portions Copyright (c) 1995. Michael Holst * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * - Neither the name of Washington University in St. Louis nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *
Definition in file similarity.c.
int invertTransform | ( | double | A[3][3], |
double | b[3], | ||
double | C[3][3], | ||
double | d[3] | ||
) |
Invert coordinate transform (A, b) to find (C, d) such that x = A*y + b y = C*x + d.
rotMat | Set to rotation matrix |
dispVec | Set to displacement vector |
Definition at line 107 of file similarity.c.
int readGrid | ( | Vgrid ** | grid, |
char * | path, | ||
Vdata_Format | format | ||
) |
Read a grid.
grid | Pointer to Vgrid file to be read |
path | Path to read from |
format | Format to read |
Definition at line 258 of file similarity.c.
int readTransform | ( | char * | path, |
double | rotMat[3][3], | ||
double | dispVec[3] | ||
) |
Read transformation from file.
path | Path to file |
rotMat | Set to rotation matrix |
dispVec | Set to displacement vector |
Definition at line 158 of file similarity.c.
void usage | ( | int | rc ) |
Prints usage information and exits.
rc | Exit code |
Definition at line 64 of file similarity.c.