Package r.data.internal.IntImpl

Examples of r.data.internal.IntImpl.RIntSequence.step()


                super(a, b, dimensions, names, attributes, n, depth, arit, ast);
                assert Utils.check(n == b.size());
                na = a.size();
                RIntSequence as = RIntSequence.cast(a);
                afrom = as.from();
                astep = as.step();
            }

            @Override
            public int getInt(int i) {
                int ai = i % na;
View Full Code Here


            public EqualSizeIntSequence(RInt a, RInt b, int[] dimensions, Names names, Attributes attributes, int n, int depth, ValueArithmetic arit, ASTNode ast) {
                super(a, b, dimensions, names, attributes, n, depth, arit, ast);
                RIntSequence bs = RIntSequence.cast(b);
                bfrom = bs.from();
                bstep = bs.step();
            }

            @Override
            public int getInt(int i) {
View Full Code Here

            public EqualSizeSequenceInt(RInt a, RInt b, int[] dimensions, Names names, Attributes attributes, int n, int depth, ValueArithmetic arit, ASTNode ast) {
                super(a, b, dimensions, names, attributes, n, depth, arit, ast);
                RIntSequence as = RIntSequence.cast(a);
                afrom = as.from();
                astep = as.step();
            }

            @Override
            public int getInt(int i) {
View Full Code Here

                super(a, b, dimensions, names, attributes, n, depth, arit, ast);
                bint = b.getInt(0);
                arithIsNA = bint == RInt.NA;
                RIntSequence as = RIntSequence.cast(a);
                afrom = as.from();
                astep = as.step();
            }

            @Override
            public int getInt(int i) {
View Full Code Here

                super(a, b, dimensions, names, attributes, n, depth, arit, ast);
                bdbl = b.getDouble(0);
                arithIsNA = RDouble.RDoubleUtils.arithIsNA(bdbl);
                RIntSequence as = RIntSequence.cast(a);
                afrom = as.from();
                astep = as.step();
            }

            @Override
            public double getDouble(int i) {
                double aint = afrom + i*astep;
 
View Full Code Here

                super(a, b, dimensions, names, attributes, n, depth, arit, ast);
                assert Utils.check(a.size() == n);
                nb = b.size();
                RIntSequence bs = RIntSequence.cast(b);
                bfrom = bs.from();
                bstep = bs.step();
                bto = bs.to();
            }

            @Override
            public int getInt(int i) {
View Full Code Here

                super(a, b, dimensions, names, attributes, n, depth, arit, ast);
                assert Utils.check(b.size() == n);
                na = a.size();
                RIntSequence bs = RIntSequence.cast(b);
                bfrom = bs.from();
                bstep = bs.step();
            }

            @Override
            public int getInt(int i) {
                int ai = i % na;
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.