Displaying 20 results from an estimated 10000 matches similar to: "Plotting math functions"
2003 Jun 12
3
Multiple imputation
Hi all,
I'm currently working with a dataset that has quite a few missing
values and after some investigation I figured that multiple imputation
is probably the best solution to handle the missing data in my case. I
found several references to functions in S-Plus that perform multiple
imputation (NORM, CAT, MIX, PAN). Does R have corresponding functions?
I searched the archives but was not
2003 Jun 17
2
Clustering quality measure
Hi all,
I am running a series of experiments where after manipulating my data I
run several clustering algorithms (agnes, diana and a clustering method
of my own) on the data. I wanted to determine which clustering method
did the best job, so therefore I had defined my own quality measure
using two criteria: compactness of the data within the clusters
themselves and the amount of seperation
2003 Jun 11
3
Multiple match function?
Hi all,
I have (yet another) question about a function in R. What I would like
to do is test for the presence of a certain value in a vector, and have
the positions that this value is at returned to me.
For example, let's say I have a vector:
x <- c(1,1,2,2,3,3,4,4)
Now I would like a function that would return positions 3 and 4 should
I test for the value "2". Or 5 and 6
2003 Apr 16
1
Question on SOM and clustering
Hello everyone,
I'm new to this list, so let me introduce myself: my name is Jonck van
der Kogel and I am a graduate student at the Erasmus University of
Rotterdam. I am currently working on my thesis which is on the use of
artificial intelligence for large data-sets.
To do an analysis of a certain data-set I want to use Kohonen's SOM
algorithm. However, as I understand it, the SOM
2003 Jun 09
2
Appending elements to an array
Hi all,
I am having a bit of trouble with the array structure of R. What I want
to do is dynamically add/remove elements to an array. For example:
Let's say I have created an array:
> myArray <- array(c(3,8), dim=c(1,2))
> myArray
[,1] [,2]
[1,] 3 8
And I now want to, for example, push an element (5,6) on to this array
so it will read:
[,1] [,2]
[1,] 3 8
2003 Jun 10
1
SOM random seed
Hi all,
I have a question about the SOM routine. You can either supply the
initial representatives for the lattice yourself or else they are
chosen randomly from the dataset. Is it possible to pass the
random-seed as an argument somehow, when choosing the random
initialisation of the lattice?
As it is now, each time I run a SOM on a dataset with the same settings
the resulting SOM will still
2003 Jun 14
1
Missing data augmentation
Hi all,
A short while ago I asked a question about multiple imputation and I
got several helpful replies, thanks! I have untill now tried to use the
packages mice and norm but both give me errors however.
mice does not even run to start with and gives me the following error
right away:
iter imp variable
1 1 Liquidity.ratioError in chol((v + t(v))/2) : the leading minor
of order 1 is not
2005 May 23
1
comparing glm models - lower AIC but insignificant coefficients
Hello,
I am a new R user and I am trying to estimate some generalized linear
models (glm). I am trying to compare a model with a gaussian
distribution and an identity link function, and a poisson model with
a log link function. My problem is that while the gaussian model has
significantly lower (i.e. "better") AIC (Akaike Information
Criterion) most of the coefficients are not
2010 Mar 01
2
[LLVMdev] constant folding for standard math functions
Hi!
I'd like to replace all calls to standard math functions (e.g. sin(0.5)) by
their result.
What strategy do you recommend?
Should I write a pass that does only this or should I copy and
modify the SCCP pass?
A problem with an extra pass could be that that I need to alternate
my pass and SCCP several times since the results of the math functions
could be folded again.
-Jochen
2018 May 23
2
Comparing results of math function calls
Hello,
Code:
int f1(int a, int b) {
return sqrt(a) > sqrt(b);
}
int f2(int a, int b) {
return a > b;
}
Possibly, under -ffast-math (to ignore NaNs), f1 could be transformed to f2
variant.
Also a transformation could support sin and tan, and reverse comparison for
cos.
Suggestions?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Mar 01
0
[LLVMdev] constant folding for standard math functions
On Mar 1, 2010, at 9:44 AM, Jochen Wilhelmy wrote:
> Hi!
>
> I'd like to replace all calls to standard math functions (e.g. sin(0.5)) by
> their result.
> What strategy do you recommend?
> Should I write a pass that does only this or should I copy and
> modify the SCCP pass?
>
> A problem with an extra pass could be that that I need to alternate
> my pass and
2017 Mar 24
2
clang 4.0.0: Invalid code for builtin floating point function with -mfloat-abi=hard -ffast-math (ARM)
On 22 March 2017 at 01:38, Friedman, Eli <efriedma at codeaurora.org> wrote:
>> Small example fail.c:
>>
>> // clang -O2 -target armv7a-none-none-eabi -mfloat-abi=hard -ffast-math
>> -S fail.c -o -
>> extern float sinf (float x);
>> float sin1 (float x) {return (sinf (x));}
I changed your example slightly to make sure we're passing the
2005 Jan 04
2
[LLVMdev] Math instructions
Hello,
I'm currently adding the floating point math instructions (fabs, fsin,
fcos ...) to the x86 instruction set. I'm a bit unsure how to make the
back end actually generate these instructions, though. My current plan
is to add llvm intrinsics for these instructions but I've noticed that
llvm already handles C math library functions to some extent. It feels a
bit strange to add
2005 Jan 06
1
[LLVMdev] Math instructions
Chris Lattner wrote:
> The way to deal with this is to add LLVM intrinsics, but only for
> functions that set errno. For example, you could add llvm.sqrt, which
> is just undefined on a negative value other than -0.0. For your uses,
> you just emit llvm.sqrt, the C frontend will make use of it and wrap
> errno handling around it as required.
>
> For functions like
2005 Jan 04
0
[LLVMdev] Math instructions
On Tue, 4 Jan 2005, Morten Ofstad wrote:
> I'm currently adding the floating point math instructions (fabs, fsin, fcos
> ...) to the x86 instruction set.
Cool!
> I'm a bit unsure how to make the back end actually generate these
> instructions, though. My current plan is to add llvm intrinsics for
> these instructions but I've noticed that llvm already handles C
2017 Mar 29
3
clang 4.0.0: Invalid code for builtin floating point function with -mfloat-abi=hard -ffast-math (ARM)
On 29 March 2017 at 02:33, Saleem Abdulrasool <compnerd at compnerd.org> wrote:
> sin/cos are libm functions, and so a libcall to those need to honour the
> floating point ABI requests. The calling convention to be followed there
> should match `-mfloat-abi` (that is, -mfloat-abi=hard => AAPCS/VFP,
> -mfloat-abi=soft => AAPCS).
Exactly, but they're not, and that's
2004 Feb 03
3
R: plotting multiple functions
Hi all
Another simple question.
I would like to plot three graphs one the same plot with different
colours. Say red, blue and black. Here are the functions.
r1<-1+5*cos(2*pi*seq(1:100)/20)+rnorm(100)
r2<-1+7*sin(2*pi*seq(1:100)/20)+rnorm(100)
r3<-1+7*sin(2*pi*seq(1:100)/20)+5*cos(2*pi*seq(1:100)/20)+rnorm(100)
Regards
Allan
2017 Mar 21
3
clang 4.0.0: Invalid code for builtin floating point function with -mfloat-abi=hard -ffast-math (ARM)
Hello,
clang/llvm 4.0.0 generates invalid calls for builtin functions with
-mfloat-abi=hard -ffast-math.
Small example fail.c:
// clang -O2 -target armv7a-none-none-eabi -mfloat-abi=hard
-ffast-math -S fail.c -o -
extern float sinf (float x);
float sin1 (float x) {return (sinf (x));}
generates code to pass the parameter in r0 and expect the result in r0.
The same code without
2010 Jun 01
1
BreastCancer Dataset for Classification in kknn
Dear All,
I'm getting a error while trying to apply the BreastCancer dataset
(package=mlbench) to kknn (package=kknn) that I don't understand as I'm new
to R.
The codes are as follow:
rm = (list = ls())
library(mlbench)
data(BreastCancer)
library(kknn)
BCancer = na.omit(BreastCancer)
d = dim(BCancer)[1]
i1 = seq(1, d, 2)
i2 = seq(2, d, 2)
t1 = BCancer[i1, ]
t2 =
2005 Oct 26
4
symbolic math
Hi all!
Does anyone knows if it exists a "symbolic math" package in R, that allows to compute derivatives, integrals, etc.?
Does exist a freeware version of Maple?
Cheers,
Marco
[[alternative HTML version deleted]]