Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the periodic of the folding results? #1

Open
desword opened this issue Jul 14, 2017 · 6 comments
Open

What's the periodic of the folding results? #1

desword opened this issue Jul 14, 2017 · 6 comments

Comments

@desword
Copy link

desword commented Jul 14, 2017

Thanks for your code. I have one question that how to determine which periodicity belongs to my signal? For example, now I have test and get the folding sum distribution with periodic range from 0 to N. Then, how to determine which periodic is correct? According to the biggest folding sum peak that the periodic has?

For example, I have obtained three folding sum distribution with periodic (3, 4, 5), and distributions are [0:2, 1:5, 2: 10, 3:2 ], [0:2, 1:5, 2:8, 3:2, 4:2], [0:2, 1:5, 2:2, 3:2, 4:2, 5:4 ]. The tuple (x, y), where x means the phase and y means the sum. And the example maybe not practical, but I want to know is which periodic should I choose? Is it the periodic 3 because its corresponding distribution has the biggest folding sum 2:10 ?
Thanks!

@adcameron
Copy link
Owner

adcameron commented Jul 14, 2017 via email

@desword
Copy link
Author

desword commented Jul 23, 2017

Sorry for the late response.
Actually, I haven't run this code successfully due to the compiling error. And I have tried to implement myself version of FFA using matlab.

I am asking how to determine the periodic according to the FFA results.

In my implementation, I first want to fold all the possible periodic, and then find the periodic with the highest folding sum. However, I find it is wrong. because any results that is the order of the correct periodic would be treated as the correct periodic. And the periodic would be one if I pick the periodic with the largest folding sum.

For example, the correct periodic is 120, however, when I fold the signal with periodic one, I will have the highest folding sum.

here is my matlab code. thanks

FFA_try.zip

@desword
Copy link
Author

desword commented Jul 23, 2017

by the way, how to contact you conveniently? your email is invalid.
acameronacameron@mpifr-bonn.mpg.de

@adcameron
Copy link
Owner

adcameron commented Jul 26, 2017 via email

@desword
Copy link
Author

desword commented Jul 31, 2017

Thanks! I will deep into this paper.

Following is the error msg:

gcc -Wall -Werror -lm ffancy.o dataarray.o ffa.o ffadata.o mad.o metric1.o metric2.o metric3.o metric4.o metric5.o metric7.o metric8.o paddedarray.o power2resizer.o equalstrings.o whitenoise.o runningmedian.o -o ffancy
ffancy.o: In function main': ffancy.c:(.text+0x97e): undefined reference to pow'
dataarray.o: In function basicPulsarDataArray': dataarray.c:(.text+0x62): undefined reference to ceil'
dataarray.o: In function readASCIIDataArray': dataarray.c:(.text+0x280): undefined reference to ceil'
dataarray.o: In function readFloatDataArray': dataarray.c:(.text+0x49b): undefined reference to ceil'
dataarray.o: In function readSIGPYPROCDataArray': dataarray.c:(.text+0x6ab): undefined reference to ceil'
dataarray.o: In function dereddenDataArray': dataarray.c:(.text+0xdd7): undefined reference to ceil'
ffa.o: In function massFFA': ffa.c:(.text+0x18a): undefined reference to fmod'
ffa.c:(.text+0x220): undefined reference to pow' ffa.c:(.text+0x31d): undefined reference to pow'
ffa.o: In function singleFFA': ffa.c:(.text+0x63a): undefined reference to log2'
ffa.c:(.text+0x874): undefined reference to pow' ffa.c:(.text+0x8bc): undefined reference to ceil'
ffa.c:(.text+0x8df): undefined reference to floor' mad.o: In function mad':
mad.c:(.text+0xb5): undefined reference to floor' mad.o: In function getDeviances':
mad.c:(.text+0x2de): undefined reference to floor' metric1.o: In function postMadMatchedFilterMetric':
metric1.c:(.text+0x63): undefined reference to log2' metric1.c:(.text+0x7a): undefined reference to ceil'
metric1.c:(.text+0x20d): undefined reference to sqrt' metric1.c:(.text+0x24c): undefined reference to sqrt'
metric2.o: In function kondratievMFMetric': metric2.c:(.text+0x63): undefined reference to log2'
metric2.c:(.text+0x7a): undefined reference to ceil' metric4.o: In function maxminMetric':
metric4.c:(.text+0x1a7): undefined reference to pow' metric4.c:(.text+0x1dd): undefined reference to sqrt'
metric5.o: In function kondratievMetric': metric5.c:(.text+0x110): undefined reference to ceil'
metric5.c:(.text+0x202): undefined reference to pow' metric5.c:(.text+0x238): undefined reference to sqrt'
power2resizer.o: In function power2Resizer': power2resizer.c:(.text+0x1d): undefined reference to log2'
power2resizer.c:(.text+0x3c): undefined reference to ceil' power2resizer.c:(.text+0x66): undefined reference to pow'
whitenoise.o: In function generateWhiteNoise': whitenoise.c:(.text+0xbe): undefined reference to log'
whitenoise.c:(.text+0xcf): undefined reference to sqrt' whitenoise.c:(.text+0xea): undefined reference to cos'
whitenoise.c:(.text+0x109): undefined reference to log' whitenoise.c:(.text+0x11a): undefined reference to sqrt'
whitenoise.c:(.text+0x135): undefined reference to `sin'
collect2: error: ld returned 1 exit status
make: *** [ffancy] Error 1

Following is the version of GCC:

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

@adcameron
Copy link
Owner

adcameron commented Jul 31, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants