Class CVisDVector
java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.AAM.CVisDVector
- Direct Known Subclasses:
CDVector
* AAM-API LICENSE - file: license.txt
This software is freely available for non-commercial use such as
research and education. Please see the full disclaimer below.
All publications describing work using this software should cite
the reference given below.
Copyright (c) 2000-2003 Mikkel B. Stegmann, mbs@imm.dtu.dk
IMM, Informatics invalid input: '&' Mathematical Modelling
DTU, Technical University of Denmark
Richard Petersens Plads, Building 321
DK-2800 Lyngby, Denmark
http://www.imm.dtu.dk/~aam/
REFERENCES
Please use the reference below, when writing articles, reports etc. where
the AAM-API has been used. A draft version the article is available from
the homepage.
I will be happy to receive pre- or reprints of such articles.
/Mikkel
-------------
M. B. Stegmann, B. K. Ersboll, R. Larsen, "FAME -- A Flexible Appearance
Modelling Environment", IEEE Transactions on Medical Imaging, IEEE, 2003
(to appear)
-------------
3RD PART SOFTWARE
The software is partly based on the following libraries:
- The Microsoft(tm) Vision Software Developers Kit, VisSDK
- LAPACK
DISCLAIMER
This software is provided 'as-is', without any express or implied warranty.
In no event will the author be held liable for any damages arising from the
use of this software.
Permission is granted to anyone to use this software for any non-commercial
purpose, and to alter it, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim
that you wrote the original software.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
--
No guarantees of performance accompany this software, nor is any
responsibility assumed on the part of the author or IMM.
This software is provided by Mikkel B. Stegmann and IMM ``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 IMM or Mikkel B. Stegmann 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.
$Revision: 1.4 $
$Date: 2003/04/23 14:49:15 $
NAME VisDMatrix -- double precision matrix/vector operations
DESCRIPTION
CLASS:
CVisDVector
The CVisDMatrix class provides some basic matrix operations,
using calls to external software (IMSL for the moment) to perform the more
complicated operations.
To take advantage of the IMSL numerical analysis routines, define VIS_USE_IMSL
in the Build Settings C/C++ property page.
Copyright (c) 1996-2000 Microsoft Corporation, All Rights Reserved
Java modification from the original cpp file.
Use partial routine for matrix manipulation for automatic prostate segmentation.
- Author:
- Ruida Cheng
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble[]protected booleanprotected int -
Constructor Summary
ConstructorsConstructorDescriptionCVisDVector(int length) CVisDVector(int length, double[] storage) CVisDVector(CVisDVector refvector) -
Method Summary
Modifier and TypeMethodDescriptionadd(CVisDVector refvector) add_into(CVisDVector refvector) assign(double value) assign(CVisDVector vec) voiddispose()div(double dbl) div_into(double dbl) EqDiff(CVisDVector refvectorA, CVisDVector refvectorB) EqProd(CVisDMatrix refmatrixA, CVisDVector refvectorB) EqSum(CVisDVector refvectorA, CVisDVector refvectorB) booleanequals(CVisDVector refvector) voiddoubleget(int index) intLength()booleanless_than(CVisDVector refvector) mult(double dbl) doublemult(CVisDVector refvector) mult_into(double dbl) neg()doubleNorm2()booleannot_equals(CVisDVector refvector) voidResize(int length) voidResize(int length, double[] storage) voidResize(int length, double[] storage, boolean flag) voidset(int index, double value) voidSetSize(int length) voidSetSize(int length, double[] storage) sub(CVisDVector refvector) sub_into(CVisDVector refvector) VisCrossProduct(CVisDVector v1, CVisDVector v2) voidVisCrossProduct(CVisDVector x, CVisDVector y, CVisDVector z)
-
Field Details
-
m_data
public double[] m_data -
m_length
protected int m_length -
m_fExternalStorage
protected boolean m_fExternalStorage
-
-
Constructor Details
-
CVisDVector
public CVisDVector() -
CVisDVector
public CVisDVector(int length) -
CVisDVector
public CVisDVector(int length, double[] storage) -
CVisDVector
-
-
Method Details
-
dispose
public void dispose() -
not_equals
-
add_into
-
sub_into
-
add
-
sub
-
VisCrossProduct
-
EqSum
-
EqDiff
-
EqProd
-
mult
-
div
-
get
public double get(int index) -
set
public void set(int index, double value) -
FreeBuffer
public void FreeBuffer() -
SetSize
public void SetSize(int length) -
SetSize
public void SetSize(int length, double[] storage) -
Length
public int Length() -
Resize
public void Resize(int length) -
Resize
public void Resize(int length, double[] storage) -
Resize
public void Resize(int length, double[] storage, boolean flag) -
assign
-
assign
-
equals
-
less_than
-
mult_into
-
div_into
-
Norm2
public double Norm2() -
neg
-
mult
-
VisCrossProduct
-