Package stallone.coordinates

Examples of stallone.coordinates.MinimalRMSDistance3D


     */
    public double minRMSD(IDoubleArray x1, IDoubleArray x2)
    {
        int N = x1.rows();
        if (minrmsd == null)
            minrmsd = new MinimalRMSDistance3D(N);
        if (minrmsd.getN() != N)
            minrmsd = new MinimalRMSDistance3D(N);
        return minrmsd.distance(x1, x2);
    }
View Full Code Here


{
    public ICoordinateTransform transform_minrmsd(final IDoubleArray Xref)
    {
        return new AbstractCoordinateTransform(1)
        {
            MinimalRMSDistance3D minrmsd = new MinimalRMSDistance3D(Xref.rows());

            @Override
            public void transform(IDoubleArray in, IDoubleArray out)
            {
                out.set(0, minrmsd.distance(Xref, in));
            }
        };
    }
View Full Code Here

    public IMetric<IDoubleArray> metric(int metricID, int nRows)
    {
        if (metricID == METRIC_MINRMSD)
        {
            return new MinimalRMSDistance3D(nRows);
        }
        if (metricID == METRIC_EUCLIDEAN)
        {
            return new EuclideanDistance();
        }
View Full Code Here

        {
            metric = new EuclideanDistance();
        }
        if (metricstring.equalsIgnoreCase("minrmsd"))
        {
            metric = new MinimalRMSDistance3D(data.getSequence(0).dimension() / 3);
        }

        // initial discretization
        if (parser.hasCommand("ninitcluster"))
        {
View Full Code Here

TOP

Related Classes of stallone.coordinates.MinimalRMSDistance3D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.