core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since d772f5d was
d772f5d,
checked in by HMP1 <helen.park@…>, 10 years ago
|
Added 1D Fit, fixed fitting error
|
-
Property mode set to
100644
|
File size:
381 bytes
|
Line | |
---|
1 | real ConvLens_kernel(real len, real rad, real endRad, real x, real tt, real theta) |
---|
2 | { |
---|
3 | real be = 0; |
---|
4 | real hDist = -1.0*sqrt(fabs(endRad*endRad-rad*rad)); |
---|
5 | real arg1 = x*cos(theta)*(endRad*tt+hDist+len/2.0); |
---|
6 | real arg2 = x*endRad*sin(theta)*sqrt(1.0-tt*tt); |
---|
7 | |
---|
8 | if(arg2 == 0) {be = 0.5;} |
---|
9 | else { |
---|
10 | be = NR_BessJ1(arg2)/arg2; |
---|
11 | } |
---|
12 | real val = cos(arg1)*(1.0-tt*tt)*be; |
---|
13 | |
---|
14 | return(val); |
---|
15 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.