And R? [Software]
Hi both,
in C the syntactic options are much more limited than in R. Fortunately The solution I switched to is much like Hötzi's
There is e.g. no direct equivalent of the
Speed is to me of no importance to me here but readibility is. This is part of an executable that does its job in 0.078 seconds and quits.
in C the syntactic options are much more limited than in R. Fortunately The solution I switched to is much like Hötzi's
test.for
case. This type of solution is in my opinon the "right" one in the sense that it doesn't do double comparisons and it can be also adapted to the case where the axis start is not at 0.0; for the purpose of getting some axis ticks where you want them this philosophy delivers and is safe. There is e.g. no direct equivalent of the
test.seq
equivalent in C; it would require custom built helper functions or similar. Note also you actually need to do something with the ticks, so looping or apply
ing would be necessary on top. Generating the ticks and using them in one and the same loop is likely fastest (but the latter is a postulate and not something I looked into in R). In C counting an integer down to 0 is often a bit faster, but not necessarily a lot. Highly settings- and compiler-dependent.Speed is to me of no importance to me here but readibility is. This is part of an executable that does its job in 0.078 seconds and quits.
—
Pass or fail!
ElMaestro
Pass or fail!
ElMaestro
Complete thread:
- Nervous ticks in C - a reminder of the cruel logic of logic ElMaestro 2018-03-15 10:24 [Software]
- Nervous ticks in C - a reminder of the cruel logic of logic mittyri 2018-03-15 11:55
- Binary representation ElMaestro 2018-03-16 13:13
- bypassing eqaulity conditions mittyri 2018-03-17 18:12
- And R? Helmut 2018-03-18 00:08
- And R?ElMaestro 2018-03-18 08:29
- And R? Helmut 2018-03-18 00:08
- bypassing eqaulity conditions mittyri 2018-03-17 18:12
- Binary representation ElMaestro 2018-03-16 13:13
- Nervous ticks in C - a reminder of the cruel logic of logic nobody 2018-03-18 13:13
- Nervous ticks in C - a reminder of the cruel logic of logic ElMaestro 2018-03-19 09:44
- Nervous ticks in C - a reminder of the cruel logic of logic nobody 2018-03-22 08:56
- Check it out for yourself - Dissolution Bootstrap:-) ElMaestro 2018-03-22 17:16
- Check it out for yourself - Dissolution Bootstrap:-) Helmut 2018-03-22 18:50
- Check it out for yourself - Dissolution Bootstrap:-) ElMaestro 2018-03-22 19:04
- Check it out for yourself - Dissolution Bootstrap:-) Helmut 2018-03-22 22:22
- Check it out for yourself - Dissolution Bootstrap:-) ElMaestro 2018-03-22 19:04
- Check it out for yourself - Dissolution Bootstrap:-) Helmut 2018-03-22 18:50
- Check it out for yourself - Dissolution Bootstrap:-) ElMaestro 2018-03-22 17:16
- Nervous ticks in C - a reminder of the cruel logic of logic nobody 2018-03-22 08:56
- Nervous ticks in C - a reminder of the cruel logic of logic ElMaestro 2018-03-19 09:44
- Nervous ticks in C - a reminder of the cruel logic of logic mittyri 2018-03-15 11:55