Package r.data.internal.IntImpl

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


                            double avalue = ((ScalarDoubleImpl) a).getDouble();
                            int[] ba = bview.a.getContent();
                            RIntSequence bbs = (RIntSequence) bview.b;
                            int bbfrom = bbs.from();
                            int bbto = bbs.to();
                            int bbstep = bbs.step();
                            ValueArithmetic barith = bview.arit;

                            double res = 0;
                            int bbb = bbfrom;
                            boolean overflown = false;
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();
            }

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

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

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

            public EqualSizeVectorSequence(RDouble 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 double getDouble(int i) {
View Full Code Here

                super(a, b, dimensions, names, attributes, n, depth, arit, ast);
                adbl = a.getDouble(0);
                arithIsNA = RDouble.RDoubleUtils.arithIsNA(adbl);
                RIntSequence bs = RIntSequence.cast(b);
                bfrom = bs.from();
                bstep = bs.step();
            }

            @Override
            public double getDouble(int i) {
                int bint = bfrom + i * bstep;
 
View Full Code Here

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

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

                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 double getDouble(int i) {
View Full Code Here

            public EqualSizeSequenceVector(RInt a, RDouble 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 double getDouble(int i) {
View Full Code Here

                super(a, b, dimensions, names, attributes, n, depth, arit, ast);
                aint = a.getInt(0);
                arithIsNA = aint == RInt.NA;
                RIntSequence bs = RIntSequence.cast(b);
                bfrom = bs.from();
                bstep = bs.step();
            }

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

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

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