{"id":18050145,"url":"https://github.com/kalmik/fuzzy-mpi","last_synced_at":"2025-04-05T06:21:31.476Z","repository":{"id":87625675,"uuid":"45645262","full_name":"kalmik/fuzzy-mpi","owner":"kalmik","description":"Implementation of fuzzy logic for distributed memory. (MPI Based).","archived":false,"fork":false,"pushed_at":"2015-11-27T17:53:48.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T14:11:21.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kalmik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-05T23:09:23.000Z","updated_at":"2015-11-05T23:10:56.000Z","dependencies_parsed_at":"2023-03-13T18:41:33.335Z","dependency_job_id":null,"html_url":"https://github.com/kalmik/fuzzy-mpi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalmik%2Ffuzzy-mpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalmik%2Ffuzzy-mpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalmik%2Ffuzzy-mpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalmik%2Ffuzzy-mpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalmik","download_url":"https://codeload.github.com/kalmik/fuzzy-mpi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247295883,"owners_count":20915545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T21:10:46.457Z","updated_at":"2025-04-05T06:21:31.458Z","avatar_url":"https://github.com/kalmik.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fuzzy-mpi\nImplementation of fuzzy logic for distributed memory. (MPI Based).\n\n##How to use\n\n###instaling MPI\n\n```\nsudo apt-get isntall openmpi1.5-bin openmpi1.5-doc libopenmpi1.5-dev\n```\n\n### buiding\n\n```\nmpicc fuzzy.c fuzzy-loader.c fuzzy-core.c -o fuzzy\n```\n\n#### options\n\n-DGENERATE_DATA  -- random inputs\n\n-DDEBUG -- debug mode\n\n### runing\n\n```\nmpiexec -n \u003cnumber of core\u003e ./fuzzy study-cases/testes.fis\n```\n\n###fuzzy-loader API\n\nConfigure your fuzzy system based on .fis file from MATLAB\u0026reg;\n\n```C\n//Jumping pointer line in file\nvoid next_line(\n\tFILE* fp //(in) file pointer\n);\n//packing input and output structure from file\nfloat* pack_io(\n\tFILE* fp, //(in) file pointer\n\tint* sz   //(out) structure size\n);\n\nfloat* load_input(\n\tFILE* fp, //(in) file pointer\n\tint* sz   //(out) structure size\n);\n\nfloat* load_output(\n\tFILE* fp, //(in) file pointer\n\tint* sz   //(out) structure size\n);\n\n//loag rule structure from file\nint* load_rules(\n\tFILE *fp,       //(in) file pointer\n\tint numInputs,  //(in) number of inputs\n\tint numOutputs, //(in) number of outputs\n\tint numRules,   //(in) number of rules\n\tint *total      //(out) total data read\n);\n\n//return number of inputs\nint get_numInputs(FILE* fp);\n\n//return number of outputs\nint get_numOutputs(FILE* fp);\n\n//return number of rules\nint get_numRules(FILE* fp);\n```\n\n### fuzzy-core API\n\nUtils function to computing fuzzy data\n\n```C\nfloat max(float _a, float _b);\n\nfloat min(float _a, float _b);\n\nfloat orOp(float _a, float _b);\n\nfloat andOp(float _a, float _b);\n\nfloat trimf(float _value, float _points[]);\n\nfloat trapmf(float _value, float _points[]);\n\nfloat fuzzify(float _value, float* _points, int size);\n\nvoid defuzzify( double _value, float* _rules, int _size, double* uX, double* u);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalmik%2Ffuzzy-mpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalmik%2Ffuzzy-mpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalmik%2Ffuzzy-mpi/lists"}