MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / sign

Method sign

src/ap.cpp:1013–1018  ·  view source on GitHub ↗

standard functions ********************************************************************/

Source from the content-addressed store, hash-verified

1011standard functions
1012********************************************************************/
1013int ap::sign(double x)
1014{
1015 if( x>0 ) return 1;
1016 if( x<0 ) return -1;
1017 return 0;
1018}
1019
1020double ap::randomreal()
1021{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected