DATAMANIP (kdatamanip) functions


LIBRARY ROUTINE

lkgsin - generate sinusoidal value data

LIBRARY CALL

int lkgsin(int w_size, int h_size,
           int d_size, int t_size,
           int e_size, int sum,
           double *ampl,double w_num,
           double h_num, double d_num, double t_num,
           double e_num, double w_phase,
           double h_phase, double d_phase,
           double t_phase, double e_phase,
           int data_type, kobject out_obj)

INPUT

OUTPUT

RETURN VALUE

TRUE (1) on success, FALSE (0) otherwise

DESCRIPTION

Library Routine for kgsin. lkgsin creates a value segment filled with sinusoidal values for the data out_obj. The value segment will be set to the the dimension of w_size * h_size * d_size * t_size * e_size that were specified. The data type of the value segment is specified by the datatype parameter, and can be KBIT, KBYTE, KUBYTE, KSHORT, KUSHORT, KINT, KUINT, KLONG, KULONG, KFLOAT, KDOUBLE, KCOMPLEX and KDCOMPLEX. The value segment will contain either a sum of 5 sinusoids, one for each dimension or the sine of the sum of the coordinates at each point depending on the value of the parameter "sum".

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$DATAMANIP/objects/library/kdatamanip/src/lkgsin.c

SEE ALSO

kdatamanip(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.