mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
pgindent run for 9.5
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
typedef unsigned short SamplerRandomState[3];
|
||||
|
||||
extern void sampler_random_init_state(long seed,
|
||||
SamplerRandomState randstate);
|
||||
SamplerRandomState randstate);
|
||||
extern double sampler_random_fract(SamplerRandomState randstate);
|
||||
|
||||
/* Block sampling methods */
|
||||
@@ -32,7 +32,7 @@ typedef struct
|
||||
int n; /* desired sample size */
|
||||
BlockNumber t; /* current block number */
|
||||
int m; /* blocks selected so far */
|
||||
SamplerRandomState randstate; /* random generator state */
|
||||
SamplerRandomState randstate; /* random generator state */
|
||||
} BlockSamplerData;
|
||||
|
||||
typedef BlockSamplerData *BlockSampler;
|
||||
@@ -46,8 +46,8 @@ extern BlockNumber BlockSampler_Next(BlockSampler bs);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
double W;
|
||||
SamplerRandomState randstate; /* random generator state */
|
||||
double W;
|
||||
SamplerRandomState randstate; /* random generator state */
|
||||
} ReservoirStateData;
|
||||
|
||||
typedef ReservoirStateData *ReservoirState;
|
||||
@@ -62,4 +62,4 @@ extern double anl_random_fract(void);
|
||||
extern double anl_init_selection_state(int n);
|
||||
extern double anl_get_next_S(double t, int n, double *stateptr);
|
||||
|
||||
#endif /* SAMPLING_H */
|
||||
#endif /* SAMPLING_H */
|
||||
|
||||
Reference in New Issue
Block a user