Examples of IRange


Examples of fr.soleil.salsa.entity.IRange

     * @return speed
     */
    @Override
    public Double getSpeed() {
        if (this instanceof IRangeTrajectory<?>) {
            IRange range = (IRange) ((IRangeTrajectory<?>) this).getRange();
            if (range != null && range instanceof IRangeIntegrated) {
                int nbOfSteps = range.getStepsNumber();
                // Speed is calculate Mantis bug 23263
                double totalDistance = Math.abs(endPosition - beginPosition);
                double totalTime = nbOfSteps * ((IRangeIntegrated) range).getIntegrationTime();
                if (totalTime != 0) {
                    speed = totalDistance / totalTime;
View Full Code Here

Examples of net.algart.math.IRange

        this.wcMin = weightCoordMin.coordinates();
        this.wcMax = weightCoordMax.coordinates();
        final IRange[] ranges = new IRange[n];
        long count = 1;
        for (int k = 0; k < n; k++) {
            IRange range = IRange.valueOf(weightCoordMin.coord(k), weightCoordMax.coord(k));
            ranges[k] = range;
            if (range.size() >= Integer.MAX_VALUE || (count *= range.size()) >= Integer.MAX_VALUE)
                throw new IllegalArgumentException("Too large desired weight matrix: more than 2^31-1 elements");
        }
        assert count >= 1;
        if (weights.length != count)
            throw new IllegalArgumentException("The length of weights array " + weights.length
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.