Search:

Type: Posts; User: bored_guy

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. i am working on ubuntu. what i would like to do...

    i am working on ubuntu. what i would like to do is carry out some simple statistical analysis on a 3D image (columns, rows, bands), for instance a linear regression on all the bands of a particular...
  2. linear regression and statistical analysis in c

    hi,

    is there some package/source code that is out there that i can use for linear regression and statistical analysis (in particular, hypothesis testing and p-value generation)?

    i think the...
  3. i see. there are these 2 c routines in...

    i see.

    there are these 2 c routines in numerical recipes, named amoeba.c and amotry.c, that i wish to implement in my program. the amoeba.c is a nonlinear regression routine that calls on...
  4. hi adak, i am sorry i catch no ball..

    hi adak, i am sorry i catch no ball..
  5. implementation of routines from numerical recipes

    hi,

    i have some specific questions to ask about implementing this downhill simplex routine called amoeba.c, from the book Numerical Recipes, 2nd ed. the questions may be rather...
  6. Replies
    9
    Views
    9,026

    i think i will just use some routines from...

    i think i will just use some routines from numerical recipes for my problem. levmar is a bit difficult for me at the moment. thanks for your help.
  7. Replies
    9
    Views
    9,026

    thanks for the suggestions. i have downloaded the...

    thanks for the suggestions. i have downloaded the levmar algorithm from the levmar website, and then following the instructions in the FAQ and accompanying readme, i then went on to get lapack. i got...
  8. Replies
    9
    Views
    9,026

    hi, thanks for the replies. i use the...

    hi, thanks for the replies. i use the curve-fitting solver tool in Excel quite frequently for my other straightforward curve-fitting problems. however, right now, what i need to do is to apply...
  9. Replies
    9
    Views
    9,026

    nonlinear curve fitting

    hi,

    i have a rather long non-linear equation with 8 variables that i need to optimize. is there some package/library of ready-made curve fitting c codes that i can use?

    thanks!
  10. searching for/creating a file in a user-specified folder

    hi,

    i am writing a simple program whereby the user is asked to key in the full path of a folder, and then the program is to search for a file with a particular name, open it for processing, and...
  11. Replies
    3
    Views
    1,231

    the code looks something like this: float...

    the code looks something like this:



    float *in1 = malloc(size * sizeof(float));
    float *in2 = malloc(size * sizeof(float));
    float *in3 = malloc(size * sizeof(float));
    ...
  12. Replies
    22
    Views
    24,187

    thx got it!

    thx got it!
  13. Replies
    3
    Views
    1,231

    question about malloc

    i notice that when my program outputs files that are >1GB in size, it always crashes with a 'segmentation fault'. i was told that this is because my computer has a RAM of 1GB, so if my program uses...
  14. Replies
    22
    Views
    24,187

    is there an efficient way to read a...

    is there an efficient way to read a numbers-and-text file? what i am currently doing is to use fgets() to read in a file line by line, and for each line i use strstr() to find if my desired quantity...
  15. Replies
    22
    Views
    24,187

    hi adak, thanks for the code. i have solved my...

    hi adak, thanks for the code. i have solved my problem, simply by using



    fread(band1, sizeof(float), size, infile);
    fread(band2, sizeof(float), size, infile);
    fread(band3, sizeof(float),...
  16. Replies
    22
    Views
    24,187

    i have a further question on another segment of...

    i have a further question on another segment of my code.

    i now have a binary file that has 3 rasters arranged via BSQ. i know how many pixels each raster has, and also know that each value is...
  17. Replies
    22
    Views
    24,187

    oh i see. thanks for the pointer!

    oh i see. thanks for the pointer!
  18. Replies
    22
    Views
    24,187

    hey thanks loads rockymarrone, that did it! ...

    hey thanks loads rockymarrone, that did it!

    yes, i compiled on command line using gcc -Wall. no compile- or run-time errors/warnings whatsoever.

    which part of my code caused the last line of...
  19. Replies
    22
    Views
    24,187

    i used the following code to read a file (infile)...

    i used the following code to read a file (infile) and write every read line to outfile as floating point numbers. everything goes smoothly except that the last line of infile is always written to...
  20. Replies
    22
    Views
    24,187

    thanks for all the suggestions. however, i have...

    thanks for all the suggestions. however, i have not really grasped the concept of pointers, and since my text files (well, some are binary) are rather straightforward and i am only extracting a few...
  21. Replies
    22
    Views
    24,187

    i have written the following: FILE...

    i have written the following:



    FILE *infile;
    infile = fopen("some_text_file", "r");
    char str[10000];
    fgets(str, 10000, infile);
    printf("this is the string: %s\n", str);...
  22. Replies
    22
    Views
    24,187

    yes, the file is sorted in such a way that it is...

    yes, the file is sorted in such a way that it is like a table, in the sense that each row starts with a word (a scientific quantity, really), and then this is followed by 3 numbers, separated by...
  23. Replies
    22
    Views
    24,187

    reading text-and-numbers file word by word

    hi,

    i have a 3-page text file which contains both text and numbers. i wish to jump to the 3rd page (to save computation time), read the words in that page word by word, and each word that i read i...
  24. Replies
    8
    Views
    2,511

    hey thx ppl that pretty much clears it

    hey thx ppl that pretty much clears it
  25. Replies
    8
    Views
    2,511

    thx guys. but if i get things like ...

    thx guys. but if i get things like



    #define OK (0)
    #define NOT_OK (-1)


    does that mean you can actually pass arguments to 'OK' and 'NOT_OK'? i was under the impression that these are...
Results 1 to 25 of 45
Page 1 of 2 1 2