Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 64 changed files with 1,964 additions and 2,958 deletions.
5 changes: 2 additions & 3 deletions symja_android_library/doc/functions/Dataset.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## Dataset

``
```
Dataset( association )
```

> create a `Dataset` object from the `association`
Dataset uses:
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/jtablesaw/tablesaw)
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/tlabs-data/tablesaw)

### Examples

Expand All @@ -20,7 +20,6 @@ Dataset uses:
102 | 42 | 7.5 |
103 | 42 | 7.5 |
```

### Related terms
[SemanticImport](SemanticImport.md), [SemanticImportString](SemanticImportString.md)
2 changes: 1 addition & 1 deletion symja_android_library/doc/functions/SemanticImport.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SemanticImport("path-to-filename")
> if the file system is enabled, import the data from CSV files and do a semantic interpretation of the columns.
Dataset uses:
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/jtablesaw/tablesaw)
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/tlabs-data/tablesaw)

### Examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SemanticImportString("string-content")
> import the data from a content string in CSV format and do a semantic interpretation of the columns.
Dataset uses:
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/jtablesaw/tablesaw)
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/tlabs-data/tablesaw)

### Examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## Dataset

``
```
Dataset( association )
```

> create a `Dataset` object from the `association`
Dataset uses:
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/jtablesaw/tablesaw)
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/tlabs-data/tablesaw)

### Examples

Expand All @@ -20,7 +20,6 @@ Dataset uses:
102 | 42 | 7.5 |
103 | 42 | 7.5 |
```

### Related terms
[SemanticImport](SemanticImport.md), [SemanticImportString](SemanticImportString.md)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SemanticImport("path-to-filename")
> if the file system is enabled, import the data from CSV files and do a semantic interpretation of the columns.
Dataset uses:
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/jtablesaw/tablesaw)
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/tlabs-data/tablesaw)

### Examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SemanticImportString("string-content")
> import the data from a content string in CSV format and do a semantic interpretation of the columns.
Dataset uses:
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/jtablesaw/tablesaw)
* [Github - JTablesaw - Java dataframe and visualization library ](https://github.com/tlabs-data/tablesaw)

### Examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,9 @@ public Double summarize(NumericColumn<?> column) {
}
};

/** @deprecated use {@link #stdDev} instead */
@Deprecated public static final NumericAggregateFunction standardDeviation = stdDev;

/** Returns the given percentile of the values in the argument */
public static Double percentile(NumericColumn<?> data, Double percentile) {
return StatUtils.percentile(removeMissing(data), percentile);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,34 @@
import tech.tablesaw.api.BooleanColumn;
import tech.tablesaw.api.ColumnType;

/**
* A partial implementation of an AggregateFunction that returns an Integer value when applied to a
* Boolean Column
*
* @deprecated Use {@link BooleanIntAggregateFunction} instead
*/
@Deprecated
abstract class BooleanCountFunction extends AggregateFunction<BooleanColumn, Integer> {

/**
* Constructs a BooleanCountFunction with the given name. The name may be used to name a column in
* the output when this function is used by {@link Summarizer}
*/
public BooleanCountFunction(String functionName) {
super(functionName);
}

/** Returns an Integer as a result of applying this function to the given column */
@Override
public abstract Integer summarize(BooleanColumn column);

/** {@inheritDoc} */
@Override
public boolean isCompatibleColumn(ColumnType type) {
return type.equals(ColumnType.BOOLEAN);
}

/** {@inheritDoc} */
@Override
public ColumnType returnType() {
return ColumnType.DOUBLE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,33 @@
import tech.tablesaw.api.BooleanColumn;
import tech.tablesaw.api.ColumnType;

/**
* Partial implementation of Aggregate function that returns a Double value when applied to a
* BooleanColumn
*
* @deprecated Use {@link BooleanDoubleAggregateFunction} instead
*/
abstract class BooleanNumericFunction extends AggregateFunction<BooleanColumn, Double> {

/**
* Constructs a BooleanNumericFunction with the given name. The name may be used to name a column
* in the output when this function is used by {@link Summarizer}
*/
public BooleanNumericFunction(String functionName) {
super(functionName);
}

/** Returns a double that is the result of applying this function to the given column */
@Override
public abstract Double summarize(BooleanColumn column);

/** {@inheritDoc} */
@Override
public boolean isCompatibleColumn(ColumnType type) {
return type.equals(ColumnType.BOOLEAN);
}

/** {@inheritDoc} */
@Override
public ColumnType returnType() {
return ColumnType.DOUBLE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,34 @@
import tech.tablesaw.api.ColumnType;
import tech.tablesaw.columns.Column;

/**
* Partial implementation of AggregateFunction that returns an integer when applied to a column of
* any type
*
* @deprecated Use {@link AnyIntAggregateFunction} instead
*/
@Deprecated
abstract class CountFunction extends AggregateFunction<Column<?>, Integer> {

/**
* Constructs a CountFunction with the given name. The name is used to name an output column when
* this function is used by {@link Summarizer}
*/
public CountFunction(String functionName) {
super(functionName);
}

/** Returns an Integer when this function is applied to the given column */
@Override
public abstract Integer summarize(Column<?> column);

/** {@inheritDoc} */
@Override
public boolean isCompatibleColumn(ColumnType type) {
return true;
}

/** {@inheritDoc} */
@Override
public ColumnType returnType() {
return ColumnType.DOUBLE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,31 @@
import tech.tablesaw.api.ColumnType;
import tech.tablesaw.api.StringColumn;

/** A partial implementation of aggregate functions to summarize over a date column */
/**
* A partial implementation of aggregate functions to summarize over a StringColumn
*
* @deprecated Use {@link StringAggregateFunction} instead
*/
@Deprecated
public abstract class StringFunction extends AggregateFunction<StringColumn, String> {

/**
* Constructs an {@code StringFunction} with the given name. The name may be used to name a column
* in the output when this function is used by {@link Summarizer}
*/
public StringFunction(String name) {
super(name);
}

public abstract String summarize(StringColumn column);

/** {@inheritDoc} */
@Override
public boolean isCompatibleColumn(ColumnType type) {
return type.equals(ColumnType.STRING);
}

/** {@inheritDoc} */
@Override
public ColumnType returnType() {
return ColumnType.STRING;
Expand Down
Loading

0 comments on commit fd72240

Please sign in to comment.