Skip to content

Commit e7e0984

Browse files
committed
initial commit
0 parents  commit e7e0984

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+6714
-0
lines changed

.gitignore

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Java template
3+
# Compiled class file
4+
*.class
5+
6+
# Log file
7+
*.log
8+
9+
# BlueJ files
10+
*.ctxt
11+
12+
# Mobile Tools for Java (J2ME)
13+
.mtj.tmp/
14+
15+
# Package Files #
16+
*.jar
17+
*.war
18+
*.ear
19+
*.zip
20+
*.tar.gz
21+
*.rar
22+
23+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
24+
hs_err_pid*
25+
### JetBrains template
26+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
27+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
28+
29+
# User-specific stuff:
30+
.idea/**/workspace.xml
31+
.idea/**/tasks.xml
32+
.idea/dictionaries
33+
34+
# Sensitive or high-churn files:
35+
.idea/**/dataSources/
36+
.idea/**/dataSources.ids
37+
.idea/**/dataSources.xml
38+
.idea/**/dataSources.local.xml
39+
.idea/**/sqlDataSources.xml
40+
.idea/**/dynamic.xml
41+
.idea/**/uiDesigner.xml
42+
43+
# Gradle:
44+
.idea/**/gradle.xml
45+
.idea/**/libraries
46+
47+
# Mongo Explorer plugin:
48+
.idea/**/mongoSettings.xml
49+
50+
## File-based project format:
51+
*.iws
52+
53+
## Plugin-specific files:
54+
55+
# IntelliJ
56+
/out/
57+
58+
# mpeltonen/sbt-idea plugin
59+
.idea_modules/
60+
61+
# JIRA plugin
62+
atlassian-ide-plugin.xml
63+
64+
# Crashlytics plugin (for Android Studio and IntelliJ)
65+
com_crashlytics_export_strings.xml
66+
crashlytics.properties
67+
crashlytics-build.properties
68+
fabric.properties
69+
### Gradle template
70+
.gradle
71+
/build/
72+
73+
# Ignore Gradle GUI config
74+
gradle-app.setting
75+
76+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
77+
!gradle-wrapper.jar
78+
79+
# Cache of project
80+
.gradletasknamecache

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

README.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Chronetic v1.0 (Alpha)
2+
: Java Time Pattern Analysis Library
3+
4+
## Overview
5+
6+
**Chronetic** is an open-source time pattern analysis library built to describe time-series data. Written in Java, using [Jenetics](http://jenetics.io/), an advanced genetic algorithm, Chronetic is able to locate the most prevalent patterns occuring in a given time-series dataset. Patterns are aggregated into a **Chronotype** and can be translated into a human-readable format with a **ChronoDescriptor**.
7+
8+
## Example
9+
10+
```java
11+
ChronoSeries chronoSeries = ChronoSeries.of(
12+
Instant.parse("2011-11-04T08:48:11Z"),
13+
Instant.parse("2012-11-02T09:23:16Z"),
14+
Instant.parse("2013-11-01T09:51:49Z"),
15+
Instant.parse("2014-11-07T08:43:00Z"),
16+
Instant.parse("2015-11-06T08:22:25Z")
17+
);
18+
19+
//static access, default engine
20+
String description = Chronetic.defaultEngine()
21+
.analyze(chronoSeries).withHourPrecision()
22+
.describe().humanReadable();
23+
24+
//Once a year from 2011 to 2015 on the first Friday of November between 8AM - 10AM
25+
System.out.println(description);
26+
27+
28+
//custom engine
29+
Chronetic chronetic = Chronetic.configure()
30+
.populationSize(500)
31+
.survivorsSize(250).offspringSize(250)
32+
.maxGeneration(15).build();
33+
34+
description = chronetic.analyze(chronoSeries)
35+
.withHourPrecision()
36+
.describe().humanReadable();
37+
38+
//Once a year from 2011 to 2015 on the first Friday of November between 8AM - 10AM
39+
System.out.println(description);
40+
```
41+
42+
## Installation
43+
44+
todo: jitpack
45+
46+
## API Reference
47+
48+
Visit http://chronetic.io/javadoc/ for the latest and most up-to-date JavaDoc documentation.
49+
50+
## Building/Testing
51+
52+
Build Chronetic:
53+
```
54+
./gradlew build
55+
```
56+
57+
Run Chronetic JUnit tests:
58+
```
59+
./gradlew test
60+
```
61+
62+
## Contributors
63+
64+
Any and all contributions are welcome. Bring on the pull requests.
65+
66+
## License
67+
68+
The library is licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).
69+
70+
Copyright 2017 CodeBrig, LLC.
71+
72+
Licensed under the Apache License, Version 2.0 (the "License");
73+
you may not use this file except in compliance with the License.
74+
You may obtain a copy of the License at
75+
76+
http://www.apache.org/licenses/LICENSE-2.0
77+
78+
Unless required by applicable law or agreed to in writing, software
79+
distributed under the License is distributed on an "AS IS" BASIS,
80+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
81+
See the License for the specific language governing permissions and
82+
limitations under the License.

build.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
group 'io.chronetic'
2+
version '1.0-alpha'
3+
4+
apply plugin: 'java'
5+
6+
sourceCompatibility = 1.8
7+
8+
repositories {
9+
mavenCentral()
10+
}
11+
12+
dependencies {
13+
testCompile group: 'junit', name: 'junit', version: '4.12'
14+
compile 'io.jenetics:jenetics:3.8.0'
15+
compile 'org.influxdb:influxdb-java:2.7'
16+
compile 'com.google.guava:guava:22.0'
17+
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
18+
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
19+
compile group: 'org.jetbrains', name: 'annotations', version: '15.0'
20+
}

gradle/wrapper/gradle-wrapper.jar

52.9 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Tue Jun 20 21:25:34 EDT 2017
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

0 commit comments

Comments
 (0)