Git Product home page Git Product logo

kbstatistics's Introduction

KBStatistics - A Knowledge Base Statistics Tool

version status
1.3.1 latest

kbstatistics is a Java jar tool that calculates statistics of given knowledge bases.

Features

The tool analysis and prints out the following statistics of given knowledge bases:

  1. General statistics (for all types of knowledge base)
  • The knowledge base name
  • The knowledge base source
  • Number of variables
  • Number of constraints
  • Number of Choco variables
  • Number of Choco constraints
  • The consistency of the knowledge base
  1. Statistics for feature model
  • The CTC ratio
  • The number of features
  • The number of leaf features
  • The number of relationships
  • The number of cross-tree constraints
  • The number of MANDATORY relationships
  • The number of OPTIONAL relationships
  • The number of ALTERNATIVE relationships
  • The number of OR relationships
  • The number of REQUIRES constraints
  • The number of EXCLUDES constraints

Supported knowledge bases

  • Feature models from SPLOT, FeatureIDE, Glencoe, and other tools. You can find some feature model examples in here.
  • PC, Renault, and Camera from CLib.

Usage

Download: Latest (v1.3.1)

Requirements: Latest Java

Syntax:

java -jar kbstatistics.jar [-h] [-kb <PC>|<Renault>|<Camera>] [-fm <feature_model_name>] [-fm-dir <path_to_folder>] [-out <path_to_file>]

If the parameter -out isn't specified, the statistics results will be saved in the file statistics.txt.

Examples:

  • Print out the help
java -jar kbstatistics.jar -h
  • Saving the statistics of the PC knowledge base on the default file (statistics.txt)
java -jar kbstatistics.jar -kb PC
  • Saving the statistics of the PC knowledge base on pc_results.txt
java -jar kbstatistics.jar -kb PC -out ./pc_results.txt
  • Saving the statistics of the PC and Renault knowledge bases on the default file (statistics.txt)
java -jar kbstatistics.jar -kb PC Renault
  • Saving the statistics of the smartwatch feature model on the default file (statistics.txt)
java -jar kbstatistics.jar -fm smartwatch.sxfm
  • Saving the statistics of feature models in the folder fms on the default file (statistics.txt)
java -jar kbstatistics.jar -fm-dir ./fms
  • Saving the statistics of PC, Renault, and feature models in the folder fms on the default file (statistics.txt)
java -jar kbstatistics.jar -fm-dir ./fms -kb PC Renault

kbstatistics's People

Contributors

manleviet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.