Ignore:
Timestamp:
Feb 10, 2011 1:33:02 PM (12 years ago)
Author:
srkline
Message:

Added XOP-ized functions for doing the distance-binned Debye Spheres calculation. Two versions are added, one that includes the SLDs and one that does not.

Also added a pseudo-random sequence generator, SobolX, that will generate pseudo-random 2D or 3D distributions. This fills space more uniformly than a random generation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/XOP_Dev/MonteCarlo/MonteCarlo.r

    r758 r789  
    104104                }, 
    105105                 
     106                "maxDistanceX",         /* function name */ 
     107                F_UTIL | F_EXTERNAL,                                    /* function category == UTILITY */ 
     108                NT_FP64,                                                        /* return value type */                  
     109                { 
     110                        NT_FP64 + WAVE_TYPE, 
     111                        NT_FP64 + WAVE_TYPE, 
     112                        NT_FP64 + WAVE_TYPE, 
     113                }, 
     114                 
     115                "binDistanceX",         /* function name */ 
     116                F_UTIL | F_EXTERNAL,                                    /* function category == UTILITY */ 
     117                NT_FP64,                                                        /* return value type */                  
     118                { 
     119                        NT_FP64 + WAVE_TYPE,                    // XYZ waves 
     120                        NT_FP64 + WAVE_TYPE, 
     121                        NT_FP64 + WAVE_TYPE, 
     122                        NT_FP64 + WAVE_TYPE,                    // distance Bin wave (this is returned) 
     123                        NT_FP64,                                                // grid 
     124                        NT_FP64,                                                // bin width 
     125                }, 
     126                 
     127                "SobolX",               /* function name */ 
     128                F_UTIL | F_EXTERNAL,                                    /* function category == UTILITY */ 
     129                NT_FP64,                                                        /* return value type */                  
     130                { 
     131                        NT_FP64,                                                // requested dimension (this is really an integer) 
     132                        NT_FP64 + WAVE_TYPE,                    // result wave 
     133                }, 
     134                 
     135                "binSLDDistanceX",              /* function name */ 
     136                F_UTIL | F_EXTERNAL,                                    /* function category == UTILITY */ 
     137                NT_FP64,                                                        /* return value type */                  
     138                { 
     139                        NT_FP64 + WAVE_TYPE,                    // XYZ waves 
     140                        NT_FP64 + WAVE_TYPE, 
     141                        NT_FP64 + WAVE_TYPE, 
     142                        NT_FP64 + WAVE_TYPE,                    // rho wave 
     143                        NT_FP64 + WAVE_TYPE,                    // distance Bin wave, 2D (this is returned) 
     144                        NT_FP64 + WAVE_TYPE,                    // SLD lookup 
     145                        NT_FP64 + WAVE_TYPE,                    // PSF id matrix 
     146                        NT_FP64,                                                // grid 
     147                        NT_FP64,                                                // bin width 
     148                }, 
     149                 
    106150        } 
    107151}; 
Note: See TracChangeset for help on using the changeset viewer.