Skip to content
Snippets Groups Projects
Commit b41aaa39 authored by Alexandre's avatar Alexandre
Browse files

Use java for usage example, Update dependencies

parent 4b968465
Branches
No related tags found
No related merge requests found
......@@ -37,8 +37,9 @@ project(':amas4dc').projectDir = new File(settingsDir, '../amas4dc')
## Usage example
```java
var amas4dc = new AMAS4DC<CustomDataPoint>(new MASSettings(new CustomDataPointDistanceMethod(), 0.5f, EnumSet.noneOf(AMASOption), new CustomDataPointFuser()))
var amas4dc = new AMAS4DC<CustomDataPoint>(new MASSettings(new CustomDataPointDistanceMethod(), 0.5f, EnumSet.noneOf(AMASOption), new CustomDataPointFuser()));
amas4dc.fit([new CustomDataPoint(1), new CustomDataPoint(2)])
var results = amas4dc.retrieveClusters()
amas4dc.fit(List.of(new CustomDataPoint(1), new CustomDataPoint(2)));
var results = amas4dc.retrieveClusters();
```
\ No newline at end of file
......@@ -36,16 +36,16 @@ dependencies {
implementation 'com.github.alexandreprl:lxplot:main-SNAPSHOT'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation platform('org.junit:junit-bom:5.9.2')
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
// https://mvnrepository.com/artifact/org.projectlombok/lombok
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.26'
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.26'
testImplementation 'org.spockframework:spock-core:2.3-groovy-3.0'
testImplementation 'org.codehaus.groovy:groovy-all:3.0.8'
testImplementation "net.bytebuddy:byte-buddy:1.9.3"
testImplementation 'org.objenesis:objenesis:3.1'
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.30'
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.30'
testImplementation 'org.spockframework:spock-core:2.4-M1-groovy-4.0'
testImplementation 'org.codehaus.groovy:groovy-all:3.0.16'
testImplementation 'net.bytebuddy:byte-buddy:1.14.2'
testImplementation 'org.objenesis:objenesis:3.2'
}
test {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment