All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.gsi.chart.axes.spi.transforms.LogarithmicTimeAxisTransform Maven / Gradle / Ivy

Go to download

This charting library ${project.artifactId}- is an extension in the spirit of Oracle's XYChart and performance/time-proven JDataViewer charting functionalities. Emphasis was put on plotting performance for both large number of data points and real-time displays, as well as scientific accuracies leading to error bar/surface plots, and other scientific plotting features (parameter measurements, fitting, multiple axes, zoom, ...).

There is a newer version: 11.2.7
Show newest version
package de.gsi.chart.axes.spi.transforms;

import de.gsi.chart.axes.Axis;

/**
 * @author rstein
 */
public class LogarithmicTimeAxisTransform extends LogarithmicAxisTransform {

    public LogarithmicTimeAxisTransform(final Axis axis) {
        super(axis);
    }

    @Override
    public double forward(final double val) {
        // return log(rangeMax - val);
        return log(val);
    }

    @Override
    public double backward(final double val) {
        // return pow(val) + rangeMax;
        return pow(val);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy