Download native4/api.cpp from PureOne/YEORIN-X-v4-Research: direct link, hf CLI and curl.
- Browser
- Download file 567 Bytes
-
https://huggingface.co/datasets/PureOne/YEORIN-X-v4-Research/resolve/main/native4/api.cpp
- Command line
-
hf download hf://datasets/PureOne/YEORIN-X-v4-Research/native4/api.cpp
-
curl -L -o api.cpp https://huggingface.co/datasets/PureOne/YEORIN-X-v4-Research/resolve/main/native4/api.cpp
567 Bytes
| API int yeorin4_query(const double *p,double*out){ | |
| if(!p||!out)return -99; | |
| yeorin4::Lease l; l.source=1;l.published=p[0];l.expires=p[1];l.a=p[2];l.energy=p[3];l.maximum=p[4];l.residual=p[5]; | |
| yeorin4::Query q;q.source=1;q.now=p[6];q.drift=p[7];q.nativeOffset=p[8];q.pixelCap=p[9];q.alphaCap=p[10];q.pathCharge=p[11];q.implementationError=p[12]; | |
| auto d=yeorin4::revalidate(l,q);out[0]=d.alpha;out[1]=d.lower;out[2]=d.nativeCharge;return d.status; | |
| } | |