Package eu.planets_project.services.compare.PropertyComparison

Examples of eu.planets_project.services.compare.PropertyComparison.Equivalence


        pbPsnr.value(""+psnr);
        pbPsnr.type("double");
        pbPsnr.description("Peak Signal-To-Noise Ratio. Is 'Infinity' if the images are identical, and much lower if the images are similar. Typical values for the PSNR in lossy image and video compression are between 30 and 50 dB, where higher is better. Acceptable values for wireless transmission quality loss are considered to be about 20 dB to 25 dB.");
        pbPsnr.unit("dB");
        // Also record equivalence.
        Equivalence eq = Equivalence.DIFFERENT;
        if( Double.isInfinite(psnr) ) eq = Equivalence.EQUAL;
        return new PropertyComparison(pbPsnr.build(), eq );
    }
View Full Code Here


        if( this.propertyEvaluation == null ) {
            propertyEvaluation = new PropertyEvaluation( this.getProperty().getUri() );
        }
        // If not set, default to the equivalence from the measurement.
        if( propertyEvaluation.getUserEquivalence() == null ) {
            Equivalence eqv = this.getEquivalence();
            if( eqv == Equivalence.EQUAL ) {
                propertyEvaluation.setUserEquivalence( EquivalenceStatement.EQUAL );
            } else if( eqv == Equivalence.DIFFERENT ) {
                propertyEvaluation.setUserEquivalence( EquivalenceStatement.DIFFERENT );
            } else if( eqv == Equivalence.MISSING ) {
View Full Code Here

TOP

Related Classes of eu.planets_project.services.compare.PropertyComparison.Equivalence

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.