/ concept-collection / ephys_compression_tests
Sign in
concept-collection / ephys_compression_tests
ephys_compression_tests / web-ui / src / components / algorithm / AlgorithmContent.tsx
35 lines · 863 BCodeBlameHistory
552a4baadd web-uiJeremy Magland 1import { Algorithm, BenchmarkData } from "../../types";
2import { BaseContent } from "../shared/BaseContent";
3import "../shared/ContentStyles.css";
5interface AlgorithmContentProps {
6 algorithm: Algorithm;
7 benchmarkData: BenchmarkData | null;
8 chartData: Array<{
9 algorithmOrDataset: string;
10 compression_ratio: number;
11 reference_compression_ratio: number | null;
12 encode_speed: number;
13 decode_speed: number;
5be77d1dev lossyJeremy Magland 14 rmse?: number;
15 tags: string[];
552a4baadd web-uiJeremy Magland 16 }>;
19export const AlgorithmContent = ({
20 algorithm,
21 benchmarkData,
22 chartData,
23}: AlgorithmContentProps) => {
24 return (
25 <BaseContent
26 item={algorithm}
27 benchmarkData={benchmarkData}
28 chartData={chartData}
29 tagNavigationPrefix="/algorithms"
30 filterKey="algorithm"
31 showSortByCompressionRatio={false}
32 showNormalizeByReference={true}
33 />
34 );
35};
moveopenescclose